ClockModule
PackageAxial
Helpers for the clock service.
Summary
| Name | Signature | Synopsis |
|---|---|---|
| Operations | ||
| service | Clock.service | Reads the clock installed in the current runtime scope. |
| now | Clock.now | Reads the current UTC timestamp from an explicit clock service. |
| utcDateTime | Clock.utcDateTime | Reads the current UTC date/time from an explicit clock service. |
| unixTimeSeconds | Clock.unixTimeSeconds | Reads the current Unix timestamp in seconds from an explicit clock service. |
| unixTimeMilliseconds | Clock.unixTimeMilliseconds | Reads the current Unix timestamp in milliseconds from an explicit clock service. |
| elapsed | Clock.elapsed | Reads a monotonic timestamp from an explicit clock service. |
| timed | Clock.timed flow | Runs a flow and returns its value together with how long it took. |
| live | Clock.live | Creates a live clock backed by UtcNow and a monotonic timer. |
| fromValue | Clock.fromValue utcNow | Creates a manual clock starting at the supplied instant. |

