From 43a35b005f9f4631dd97a9db0f41ad76eaed941e Mon Sep 17 00:00:00 2001 From: Steven Guerrero Date: Mon, 7 Dec 2020 08:27:25 -0500 Subject: perf: use minimal op with performance.now() (#8619) --- cli/rt/40_performance.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cli/rt/40_performance.js') diff --git a/cli/rt/40_performance.js b/cli/rt/40_performance.js index 3d8be6031..0a63dc704 100644 --- a/cli/rt/40_performance.js +++ b/cli/rt/40_performance.js @@ -43,8 +43,7 @@ } function now() { - const res = opNow(); - return res.seconds * 1e3 + res.subsecNanos / 1e6; + return opNow(); } class PerformanceEntry { -- cgit v1.2.3