()
| 67 | * See https://github.com/getsentry/sentry-javascript/issues/2590. |
| 68 | */ |
| 69 | export 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. |
no test coverage detected