Browse Source

Fixes process import

main
Eric Amodio 2 years ago
parent
commit
ca1da4a8ec
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/system/string.ts

+ 2
- 1
src/system/string.ts View File

@ -1,6 +1,7 @@
'use strict'; 'use strict';
import ansiRegex from 'ansi-regex'; import ansiRegex from 'ansi-regex';
import { md5 as _md5 } from '@env/crypto'; import { md5 as _md5 } from '@env/crypto';
import { hrtime } from '@env/hrtime';
export { fromBase64, base64 } from '@env/base64'; 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]) { export function getDurationMilliseconds(start: [number, number]) {
const [secs, nanosecs] = process.hrtime(start);
const [secs, nanosecs] = hrtime(start);
return secs * 1000 + Math.floor(nanosecs / 1000000); return secs * 1000 + Math.floor(nanosecs / 1000000);
} }

Loading…
Cancel
Save