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
. - System
Time - 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