mirror of
https://github.com/denoland/deno.git
synced 2025-03-09 13:49:37 -04:00
![]() `performance.timeOrigin` was being set from when JS started executing, but `op_now` measures from an `std::time::Instant` stored in `OpState`, which is created at a completely different time. This caused `performance.timeOrigin` to be very incorrect. This PR corrects the origin and also cleans up some of the timer code. Compared to `Date.now()`, `performance`'s time origin is now consistently within 5us (0.005ms) of system time.  |
||
---|---|---|
.. | ||
bench.rs | ||
jupyter.rs | ||
mod.rs | ||
testing.rs |