Commit f9bfdec
committed
doc: clarify setTimeout millisecond precision behavior
Document that timer delays are tracked with millisecond precision
internally, and that callbacks may appear to fire up to 1ms early
when measured with sub-millisecond clocks (process.hrtime(),
performance.now()). This is caused by rounding at the millisecond
boundary and is most noticeable when timers interact with
setImmediate() or other I/O.
Refs: #26578
Signed-off-by: V Govindarajan <vijay.govindarajan91@gmail.com>1 parent 7d1f1b4 commit f9bfdec
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
279 | 286 | | |
280 | 287 | | |
281 | 288 | | |
| |||
0 commit comments