mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:07:36 +00:00
LibWeb: Implement performance.timeOrigin
This is the origin timestamp of the same monotonic clock used for the performance.now() timestamp. I got a little confused while implementing this, since the numbers are very low. That's because it uses the CLOCK_MONOTONIC system clock, which we start counting from 0 at boot. :^)
This commit is contained in:
parent
62785b7872
commit
18cff5e0be
3 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
|||
interface Performance : EventTarget {
|
||||
double now();
|
||||
readonly attribute double timeOrigin;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue