From ca1da4a8ec0d458414bce3f7f661f7c0c70a30f3 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Wed, 12 Jan 2022 23:19:30 -0500 Subject: [PATCH] Fixes process import --- src/system/string.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/system/string.ts b/src/system/string.ts index 7465e2a..c85fc33 100644 --- a/src/system/string.ts +++ b/src/system/string.ts @@ -1,6 +1,7 @@ 'use strict'; import ansiRegex from 'ansi-regex'; import { md5 as _md5 } from '@env/crypto'; +import { hrtime } from '@env/hrtime'; export { fromBase64, base64 } from '@env/base64'; @@ -148,7 +149,7 @@ export function getCommonBase(s1: string, s2: string, delimiter: string) { } export function getDurationMilliseconds(start: [number, number]) { - const [secs, nanosecs] = process.hrtime(start); + const [secs, nanosecs] = hrtime(start); return secs * 1000 + Math.floor(nanosecs / 1000000); }