()
| 413 | // setTimeout-based polling needs a monotonic clock; Date.now is adequate here and |
| 414 | // keeps the helper trivially mockable in tests via the injected clock. |
| 415 | function monotonicNow() { |
| 416 | return Date.now(); |
| 417 | } |
| 418 | |
| 419 | async function main() { |
| 420 | const rawOptions = parseArgs(process.argv.slice(2)); |