/**
 * Time helpers used by the CLI runner (e.g. for event replay).
 */

export function nowMs(): number {
  return typeof performance !== 'undefined' ? performance.now() : Date.now()
}

export async function sleep(ms: number): Promise<void> {
  await new Promise<void>(resolve => setTimeout(resolve, ms))
}
