zeitstempel 0.2.2

A timestamp you can serialize, and it might include suspend time.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use std::{thread, time::Duration};

fn main() {
    let start = zeitstempel::now();
    println!("Now: {start}");

    thread::sleep(Duration::from_secs(2));

    let diff = zeitstempel::now() - start;
    println!("Diff: {} ms", Duration::from_nanos(diff).as_millis());
}