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