Change Event.timeStamp to be a DOMHighResTimeStamp which is a high resolution monotonic time with microseconds resolution instead DOMTimeStamp which is an epoch time with millisecond resolution. For input events, the timestamp value will represent the underlying OS timestamp for the event. High resolution monotonic timestamp for input events enables new functionality such as accurate measurement of pointer velocity, simple input latency measurements, and etc.
Specification currently under development in a Working Group
Status in Chromium
Enabled by default
Consensus & Standardization
Search tagshigh resolution, timeStamp, event, input,
Last updated on 2020-11-09