Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix Math Error
Updates benchmark result output to actual real result.

1 * 1e9 + 552 = 1000000552 not 1000000527
  • Loading branch information
DiegoRBaquero authored Feb 4, 2017
commit b477bb75e3cb3ecdd5747f7ee71e0d43aa2f6e9e
2 changes: 1 addition & 1 deletion doc/api/process.md
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,7 @@ setTimeout(() => {
// [ 1, 552 ]

console.log(`Benchmark took ${diff[0] * NS_PER_SEC + diff[1]} nanoseconds`);
// benchmark took 1000000527 nanoseconds
// benchmark took 1000000552 nanoseconds
}, 1000);
```

Expand Down