MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / SimpleClock

Class SimpleClock

packages/core/src/v3/clock/simpleClock.ts:4–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2import { Clock } from "./clock";
3
4export class SimpleClock implements Clock {
5 preciseNow(): [number, number] {
6 const now = new PreciseDate();
7 const nowStruct = now.toStruct();
8
9 return [nowStruct.seconds, nowStruct.nanos];
10 }
11
12 reset() {
13 // do nothing
14 }
15}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…