Crate ckb_systemtime

Source
Expand description

ckb_systemtime provide real system timestamp, and faketime when enable_faketime feature is enabled.

Structs§

Duration
A Duration type to represent a span of time, typically used for system timeouts.
Instant
A measurement of a monotonically nondecreasing clock. Opaque and useful only with Duration.
SystemTime
A measurement of the system clock, useful for talking to external entities like the file system or other processes.

Functions§

unix_time
Get system’s unix_time
unix_time_as_millis
Get system’s timestamp in millis