SplitScript reference / Instant / now
Instant.now
Function
Instant.now() -> Instant
Reads the runtime's monotonic clock.
Successive readings never move backwards while one runtime instance is active. The absolute value is intentionally not exposed.
Effects: allocates, reads runtime state
Runtime behavior: available everywhere; synchronous
Examples
Remember when an event occurred
let detectedAt = Instant.now()