Skip to main content

Module time

Module time 

Source

Functions§

deadline_after
The instant base + d, saturating where Instant + Duration would panic — the single owner of “turn a delay into a deadline”.
deadline_from_now
base = now. See deadline_after.
duration_from_secs
Seconds as an f64 → Duration, without the panic Duration::from_secs_f64 raises.
now_mono
now_wall
Current wall-clock time as a WallTime.
quantize_to_sleep_quantum
Round seconds to the nearest whole thread_sleep_quantum tick, the way C records do it:
sleep_secs
Block the calling thread for secs — C epicsThreadSleep, and the single owner of “turn a caller-supplied delay into a sleep”.
thread_sleep_quantum
The OS clock-tick period, in seconds — C epicsThreadSleepQuantum().