Web APIs

performance.timeOrigin

Try the free JavaScript compiler

Timestamp for the current performance time origin in milliseconds; combine with a relative reading when translating time references.

Formal Syntax & Structure

javascript syntaxjavascript
performance.timeOrigin

Return Value

number

Origin timestamp in milliseconds.

Working Example

Example Snippetjavascript
(async () => {console.log(Number.isFinite(performance.timeOrigin),typeof performance.now());})()
JavaScript Reference