summaryrefslogtreecommitdiff
path: root/cli/rt/40_performance.js
diff options
context:
space:
mode:
authorSteven Guerrero <stephenguerrero43@gmail.com>2020-12-07 08:27:25 -0500
committerGitHub <noreply@github.com>2020-12-07 08:27:25 -0500
commit43a35b005f9f4631dd97a9db0f41ad76eaed941e (patch)
tree50f65c3c5a2260ec3455c79c4ea8185ffad67c07 /cli/rt/40_performance.js
parentb77d6cb29e4437f4783368aaa3b1d5c972470ad0 (diff)
perf: use minimal op with performance.now() (#8619)
Diffstat (limited to 'cli/rt/40_performance.js')
-rw-r--r--cli/rt/40_performance.js3
1 files changed, 1 insertions, 2 deletions
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 {