1# @ajax/mesh-top-clock
23Monotonic instants and durations with Rust's std::time arithmetic, and a virtual clock for tests.
45Part of the C port of [alpha-rust-mesh](https://github.com/rsafier/alpha-rust-mesh)'s `mesh-top`, the terminal
6dashboard for meshd clusters. Every frame it draws is checked against the Rust one, cell for cell
7(text, colours and modifiers): see @ajax/mesh-top-tests.
89## Ported from
1011[alpha-rust-mesh](https://github.com/rsafier/alpha-rust-mesh) (Richard Safier, MIT): crates/mesh-top's use of `std::time::Instant`, plus the virtual clock the golden scenarios run on (the scratch generator patches the Rust mock the same way).
1213## Tests
1415`tests/clock.c`.
1617## Licence
1819MIT. See the repository's LICENSE.