Files
sakurac/system/clock.sakura
T

20 lines
639 B
Plaintext
Raw Normal View History

2026-10-26 10:14:11 -05:00
#! @file clock.sakura
#! @author John Christman (sorakatadzuma@gmail.com)
#! @copyright Malunal Studios, LLC.
#! @license MIT
#!
#! Contains the kinds of clock a system keeps, which `system` reads on each
#! system and `std::time` gives as moments.
module system;
#! A clock a system keeps, which `system::clock` reads.
pub enum clock_kind: u8 {
#! The time of day, since 1970 began in UTC. The system sets it, so it may go
#! forward or back, as when it is corrected over a network.
wall,
#! A clock that only ever goes forward, from a start that means nothing, which
#! is what measures how long something took.
steady,
}