Skip to main content

sim_lib_stream_clock/
lib.rs

1#![forbid(unsafe_code)]
2#![deny(missing_docs)]
3//! Clock charts and tick conversion helpers for SIM streams.
4//!
5//! The crate keeps clock math in library space. Kernel events still carry only
6//! kernel `Tick` values, with clock indexes interned as datum content refs.
7
8mod citizen;
9mod clock;
10pub mod cookbook;
11mod instant;
12mod tempo;
13
14pub use citizen::{StreamClockDescriptor, stream_clock_class_symbol};
15pub use clock::{Clock, ClockChart, ClockIndex, IndexConversion};
16pub use cookbook::tempo_chart_demo;
17pub use instant::Instant;
18pub use tempo::{TempoMap, TempoSegment};
19
20/// Cookbook recipes for this lib, embedded at build time.
21pub static RECIPES: sim_cookbook::EmbeddedDir =
22    include!(concat!(env!("OUT_DIR"), "/cookbook_recipes.rs"));
23
24#[cfg(test)]
25mod tests;