now method
Returns the number of milliseconds, accurate to a thousandth of a millisecond, from the start of document navigation to the time the now method was called.
![]() |
Syntax
var retVal = performance.now();Parameters
- retVal [out, retval]
-
Type: DOMHighResTimeStamp
Remarks
When taking web application performance measurements, use this method instead of the Date.now method to ensure that the returned timing values have a millisecond resolution and monotonically increase (where later values are never less than earlier values).
See also
Show:
