From 60caeb02504c2a7a1c0a442af2399f4d62f4f51c Mon Sep 17 00:00:00 2001 From: Hamza Elmiqdam Date: Tue, 7 Jul 2020 17:31:43 +0200 Subject: [PATCH] Update README.md Fix small error in the doc --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 28080f8..bb565d1 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ var now = require("performance-now") var start = now() var end = now() console.log(start.toFixed(3)) // the number of milliseconds the current node process is running -console.log((start-end).toFixed(3)) // ~ 0.002 on my system +console.log((end - start).toFixed(3)) // ~ 0.002 on my system ``` Running the now function two times right after each other yields a time difference of a few microseconds. Given this overhead, I think it's best to assume that the precision of intervals computed with this method is not higher than 10 microseconds, if you don't know the exact overhead on your own system.