Returns a timestamp in seconds since the UNIX epoch using either the Performance or Date APIs, depending on the
availability of the Performance API.
See usingPerformanceAPI to test whether the Performance API is used.
BUG: Note that because of how browsers implement the Performance API, the clock might stop when the computer is
asleep. This creates a skew between dateTimestampInSeconds and timestampInSeconds. The
skew can grow to arbitrary amounts like days, weeks or months.
See https://github.com/getsentry/sentry-javascript/issues/2590.
Returns a timestamp in seconds since the UNIX epoch using either the Performance or Date APIs, depending on the availability of the Performance API.
See
usingPerformanceAPI
to test whether the Performance API is used.BUG: Note that because of how browsers implement the Performance API, the clock might stop when the computer is asleep. This creates a skew between
dateTimestampInSeconds
andtimestampInSeconds
. The skew can grow to arbitrary amounts like days, weeks or months. See https://github.com/getsentry/sentry-javascript/issues/2590.