deno/ext
snek 73fbd61bd0
fix: performance.timeOrigin (#26787)
`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.


![image](https://github.com/user-attachments/assets/0a7be04a-4f6d-4816-bd25-38a2e6136926)
2024-11-08 23:20:24 +01:00
..
broadcast_channel chore: forward v2.0.5 release commit to main (#26755) 2024-11-06 02:27:14 +01:00
cache fix(ext/cache): don't panic when creating cache (#26780) 2024-11-08 12:27:29 +05:30
canvas chore: forward v2.0.5 release commit to main (#26755) 2024-11-06 02:27:14 +01:00
console chore: forward v2.0.5 release commit to main (#26755) 2024-11-06 02:27:14 +01:00
cron chore: forward v2.0.5 release commit to main (#26755) 2024-11-06 02:27:14 +01:00
crypto chore: forward v2.0.5 release commit to main (#26755) 2024-11-06 02:27:14 +01:00
fetch feat(ext/http): abort event when request is cancelled (#26781) 2024-11-08 18:46:11 +05:30
ffi chore: forward v2.0.5 release commit to main (#26755) 2024-11-06 02:27:14 +01:00
fs chore: forward v2.0.5 release commit to main (#26755) 2024-11-06 02:27:14 +01:00
http feat(ext/http): abort event when request is cancelled (#26781) 2024-11-08 18:46:11 +05:30
io chore: forward v2.0.5 release commit to main (#26755) 2024-11-06 02:27:14 +01:00
kv chore: forward v2.0.5 release commit to main (#26755) 2024-11-06 02:27:14 +01:00
napi chore: forward v2.0.5 release commit to main (#26755) 2024-11-06 02:27:14 +01:00
net refactor(ext/net): Use hickory dns instead of unmaintained trust-dns (#26741) 2024-11-06 15:49:32 -08:00
node refactor: use concrete error type for remaining ops (#26746) 2024-11-06 16:57:57 -08:00
tls chore: forward v2.0.5 release commit to main (#26755) 2024-11-06 02:27:14 +01:00
url chore: forward v2.0.5 release commit to main (#26755) 2024-11-06 02:27:14 +01:00
web fix: performance.timeOrigin (#26787) 2024-11-08 23:20:24 +01:00
webgpu chore: forward v2.0.5 release commit to main (#26755) 2024-11-06 02:27:14 +01:00
webidl chore: forward v2.0.5 release commit to main (#26755) 2024-11-06 02:27:14 +01:00
websocket chore: forward v2.0.5 release commit to main (#26755) 2024-11-06 02:27:14 +01:00
webstorage chore: forward v2.0.5 release commit to main (#26755) 2024-11-06 02:27:14 +01:00