timeOrigin property
The timeOrigin read-only property of the Performance interface
returns the high resolution timestamp that is used as the baseline for
performance-related timestamps.
In Window contexts, this value represents the time when navigation has started. In Worker and ServiceWorker contexts, this value represents the time when the worker is run. You can use this property to synchronize the time origins between the contexts (see example below).
Note: The value of
performance.timeOriginmay differ from the value returned byDate.now()executed at the time origin, becauseDate.now()may have been impacted by system and user clock adjustments, clock skew, etc. ThetimeOriginproperty is a monotonic clock which current time never decreases and which isn't subject to these adjustments.
Implementation
external double get timeOrigin;