MCPcopy
hub / github.com/hcengineering/platform / now

Method now

foundations/net/packages/core/src/utils.ts:40–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38 }
39
40 now (): number {
41 // Use performance.now() when available, otherwise fall back to Date.now()
42 // performance is available in recent Node versions, but guard for portability.
43 return (globalThis as any).performance?.now?.() ?? Date.now()
44 }
45
46 register (handler: TickHandler, interval: number): () => void {
47 if (!Number.isFinite(interval) || interval < 1) {

Callers 15

generateAnonymousIdMethod · 0.45
addEventMethod · 0.45
handleErrorMethod · 0.45
constructorMethod · 0.45
onUrlChangeMethod · 0.45
getSessionDataMethod · 0.45
generateInsertIdMethod · 0.45
isReturningUserMethod · 0.45
importCommentsMethod · 0.45
createAttachmentMethod · 0.45
createAttachmentsMethod · 0.45
importAttachmentFunction · 0.45

Calls

no outgoing calls

Tested by 15

checkFindPerformanceFunction · 0.36
eventForFunction · 0.36
pastDateFunction · 0.36
doWorkFunction · 0.36
createMockDocFunction · 0.36
createMockAttachedDocFunction · 0.36
createMockSpaceFunction · 0.36
buildDocFunction · 0.36
createMockCardFunction · 0.36
simulateWorkFunction · 0.36
createTestTxFunction · 0.36
pingMethod · 0.36