MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / timestampInSeconds

Function timestampInSeconds

packages/core/src/utils/time.ts:69–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67 * See https://github.com/getsentry/sentry-javascript/issues/2590.
68 */
69export function timestampInSeconds(): number {
70 // We store this in a closure so that we don't have to create a new function every time this is called.
71 const func = _cachedTimestampInSeconds ?? (_cachedTimestampInSeconds = createUnixTimestampInSecondsFunc());
72 return func();
73}
74
75/**
76 * Cached result of getBrowserTimeOrigin.

Callers 15

shouldComponentUpdateMethod · 0.90
componentWillUnmountMethod · 0.90
useProfilerFunction · 0.90
TraceMethodFunction · 0.90
session.test.tsFile · 0.90
spanUtils.test.tsFile · 0.90
sentrySpan.test.tsFile · 0.90
makeSessionFunction · 0.90
updateSessionFunction · 0.90
runCallbackFunction · 0.90
finishCheckInFunction · 0.90
_INTERNAL_captureLogFunction · 0.90

Calls 2

funcFunction · 0.50

Tested by

no test coverage detected