aboutsummaryrefslogtreecommitdiff
path: root/mirai/common/constants/time.zig
diff options
context:
space:
mode:
authorBobby <[email protected]>2026-02-20 16:01:41 +0530
committerBobby <[email protected]>2026-02-20 16:01:41 +0530
commitc1c827540981247fd943318f503e5d814e91921d (patch)
tree487565051922295d669ed560b04c10916db35c29 /mirai/common/constants/time.zig
parenteb4c4dd3c9fe7d2424298c7b53cbe6fc1c3707eb (diff)
downloadakiba-c1c827540981247fd943318f503e5d814e91921d.tar.xz
akiba-c1c827540981247fd943318f503e5d814e91921d.zip
feat: Implement CMOS/RTC and CPUID operations, add PIT driver, and enhance AFS with disk info retrieval
Diffstat (limited to 'mirai/common/constants/time.zig')
-rw-r--r--mirai/common/constants/time.zig9
1 files changed, 9 insertions, 0 deletions
diff --git a/mirai/common/constants/time.zig b/mirai/common/constants/time.zig
new file mode 100644
index 0000000..ce50e2a
--- /dev/null
+++ b/mirai/common/constants/time.zig
@@ -0,0 +1,9 @@
+//! Time constants
+
+pub const TICKS_PER_SECOND: u64 = 100;
+
+pub const SECONDS_PER_MINUTE: u64 = 60;
+pub const SECONDS_PER_HOUR: u64 = 3600;
+pub const SECONDS_PER_DAY: u64 = 86400;
+
+pub const EPOCH_YEAR: u64 = 1970;