diff --git a/src/utils.ts b/src/utils.ts index 49aa15ccea..e6638ed27c 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -436,8 +436,7 @@ export function makeStateMachine(stateTable: StateTable): StateTransitionFunctio /** @internal */ export function now(): number { - const hrtime = process.hrtime(); - return Math.floor(hrtime[0] * 1000 + hrtime[1] / 1000000); + return Math.floor(performance.now()); } /** @internal */