The Timer class provides an easy interface for working with
DOMHighResolutionTimestamps via the performance API. When
instantiated, the value of performance.now() is recorded.
The mark method can then be used to retrieve the duration
passed since instantiation.
The Timer class provides an easy interface for working with DOMHighResolutionTimestamps via the
performance
API. When instantiated, the value ofperformance.now()
is recorded. Themark
method can then be used to retrieve the duration passed since instantiation.