MCPcopy Index your code
hub / github.com/callstack/agent-device / now

Function now

src/commands/runtime-common.ts:16–18  ·  view source on GitHub ↗
(runtime: Pick<AgentDeviceRuntime, 'clock'>)

Source from the content-addressed store, hash-verified

14}
15
16export function now(runtime: Pick<AgentDeviceRuntime, 'clock'>): number {
17 return runtime.clock?.now() ?? Date.now();
18}
19
20export async function sleep(runtime: Pick<AgentDeviceRuntime, 'clock'>, ms: number): Promise<void> {
21 if (runtime.clock) await runtime.clock.sleep(ms);

Callers 9

captureRuntimeSnapshotFunction · 0.90
normalizeBackendSnapshotFunction · 0.90
captureSelectorSnapshotFunction · 0.90
waitForFindMatchFunction · 0.90
waitForSelectorFunction · 0.90
waitForTextFunction · 0.90
pollDeviceAuthFunction · 0.85
isExpiredFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected