Crate crux_time

Source
Expand description

Current time access for Crux apps

Current time (on a wall clock) is considered a side-effect (although if we were to get pedantic, it’s more of a side-cause) by Crux, and has to be obtained externally. This capability provides a simple interface to do so.

Re-exports§

pub use protocol::duration::Duration;
pub use protocol::instant::Instant;
pub use protocol::TimeRequest;
pub use protocol::TimeResponse;
pub use protocol::TimerId;

Modules§

command
protocol

Structs§

Time
The Time capability API
TimerFuture