Collection of general purpose time tools.
```rust
{ use time_tools::; / get milliseconds from UNIX epoch */ let now = time::now(); println!( "now {}", now );
/* get nanoseconds from UNIX epoch */ let now = time::now(); let nowns = time::ns::now(); asserteq!( now, now_ns / 1000000 );
/* get seconds from UNIX epoch */ let now = time::now(); let nows = time::s::now(); asserteq!( now / 1000, now_s ); } ```
sh
cargo add time_tools
sh
git clone https://github.com/Wandalen/wTools
cd wTools
cd sample/rust/time_tools_trivial
cargo run