We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50e88d0 commit 872cb0dCopy full SHA for 872cb0d
doc/api/process.markdown
@@ -418,15 +418,14 @@ You may pass in the result of a previous call to `process.hrtime()` to get
418
a diff reading, useful for benchmarks and measuring intervals:
419
420
var time = process.hrtime();
421
- // [ 1800216, 927643717 ]
+ // [ 1800216, 25 ]
422
423
setTimeout(function () {
424
var diff = process.hrtime(time);
425
- // [ 1, 6962306 ]
+ // [ 1, 552 ]
426
427
- console.log('benchmark took %d seconds and %d nanoseconds',
428
- diff[0], diff[1]);
429
- // benchmark took 1 seconds and 6962306 nanoseconds
+ console.log('benchmark took %d nanoseconds', diff[0] * 1e9 + diff[1]);
+ // benchmark took 1000000527 nanoseconds
430
}, 1000);
431
432
[EventEmitter]: events.html#events_class_events_eventemitter
0 commit comments