Read-only access to a TimeService's current time. This allows reading the current time (e.g. to see if a deadline has passed) without the ability to schedule events.

interface Clock {
    getCurrentTimestamp: (() => TimestampRecord);
    getTimerBrand: (() => TimerBrand);
}

Properties

getCurrentTimestamp: (() => TimestampRecord)

Retrieve the latest timestamp

Type declaration

getTimerBrand: (() => TimerBrand)

Retrieve the Brand for this timer service.

Type declaration