Skip to main content

win_time_sys/
lib.rs

1// Copyright (c) 2026 Mike Grier
2#![doc = include_str!("../README.md")]
3#![cfg(windows)]
4#![deny(missing_docs)]
5#![deny(unsafe_op_in_unsafe_fn)]
6// Every `unsafe` here is a Win32 call, and each states why it is sound (WT-1.1).
7#![deny(clippy::undocumented_unsafe_blocks)]
8
9mod clock;
10mod interrupt;
11mod performance;
12mod system;
13mod timeline;
14
15pub use clock::{Clock, Steady};
16pub use interrupt::{
17    InterruptClock, InterruptTime, PreciseInterruptClock, PreciseUnbiasedInterruptClock,
18    UnbiasedInterruptClock, UnbiasedInterruptTime,
19};
20pub use performance::{PerformanceClock, PerformanceCounter};
21pub use system::{CoarseSystemClock, FileTime, PreciseSystemClock};
22pub use timeline::{Ticks, TimePoint, Timeline};