Files
sat-rs/examples/minisim/src/time.rs
T
Robin Mueller 2ba0ace388 first step in unifying the examples: one example folder
One example folder for all examples, including std and embedded examples
2026-09-24 19:45:02 +02:00

6 lines
167 B
Rust

use nexosim::time::MonotonicTime;
pub fn current_millis(time: MonotonicTime) -> u64 {
(time.as_secs() as u64 * 1000) + (time.subsec_nanos() as u64 / 1_000_000)
}