abla/process/time
Generated from source.
Import with import "abla/process/time".
Source: abla/process/time/entry.ab
sleep (fun)
fun sleep(milliseconds: int): void
Sleeps for milliseconds, resuming after interruption. Invalid durations and sleep failures are ignored.
sleepNanoseconds (fun)
fun sleepNanoseconds(nanoseconds: int): bool
Sleeps for nanoseconds, resuming after interruption. Returns false for a negative duration or a system error.
monotonicNanoseconds (fun)
fun monotonicNanoseconds(): int
Reads the monotonic clock in nanoseconds. Use differences to measure elapsed time. Returns 0 on clock failure.
monotonicMilliseconds (fun)
fun monotonicMilliseconds(): int
Reads the monotonic clock in whole milliseconds. Returns 0 on clock failure.
realtimeNanoseconds (fun)
fun realtimeNanoseconds(): int
Wall-clock time since 1970-01-01T00:00:00Z. Unlike the monotonic clock it can jump when the system clock is set.
realtimeMilliseconds (fun)
fun realtimeMilliseconds(): int
Returns wall-clock milliseconds since the Unix epoch, or 0 if the clock read fails.
utcNow (fun)
fun utcNow(): UtcDate
The current UTC date and time (see abla/date).
MonotonicClock (class)
resource class MonotonicClock(var linux: LinuxMonotonicClock)
A monotonic clock and sleep helper with reusable native buffers. Create it with monotonicClock.
MonotonicClock.valid (method)
fun valid(): bool
Returns true while the clock's native buffers are open and large enough.
MonotonicClock.nanoseconds (method)
fun nanoseconds(): int
Reads the monotonic clock in nanoseconds. Returns 0 if the timestamp buffer is unusable or the clock read fails.
MonotonicClock.milliseconds (method)
fun milliseconds(): int
Reads the monotonic clock in whole milliseconds. Returns 0 on clock failure.
MonotonicClock.sleepNanoseconds (method)
fun sleepNanoseconds(nanoseconds: int): bool
Sleeps for nanoseconds using the clock's reusable buffers. Returns false for a negative duration, unusable buffers, or a system error.
MonotonicClock.drop (method)
fun drop(): void
Closes the clock's native buffers.
monotonicClock (fun)
fun monotonicClock(): MonotonicClock
Creates a clock with reusable buffers for timestamp reads and sleeps.
Built from Abla v0.2.79 source ba5d6b7d. Examples and generated signatures follow that source revision.