mirror of https://github.com/nodejs/node.git
doc: fix math error in process.md
Updates benchmark result output to actual real result. 1 * 1e9 + 552 = 1000000552 not 1000000527 PR-URL: https://github.com/nodejs/node/pull/11158 Reviewed-By: Anna Henningsen <anna@addaleax.net>pull/10790/merge
parent
23cda7d9de
commit
c5a0dcedd3
|
@ -1052,7 +1052,7 @@ setTimeout(() => {
|
||||||
// [ 1, 552 ]
|
// [ 1, 552 ]
|
||||||
|
|
||||||
console.log(`Benchmark took ${diff[0] * NS_PER_SEC + diff[1]} nanoseconds`);
|
console.log(`Benchmark took ${diff[0] * NS_PER_SEC + diff[1]} nanoseconds`);
|
||||||
// benchmark took 1000000527 nanoseconds
|
// benchmark took 1000000552 nanoseconds
|
||||||
}, 1000);
|
}, 1000);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue