trice 0.4.0

A minimal replacement for std::time::Instant that works in WASM for the web and Node.js.
Documentation
1
2
3
4
5
6
7
8
9
10
11
#[cfg(target_arch = "wasm32")]
mod wasm;
#[cfg(target_arch = "wasm32")]
pub use wasm::*;

#[cfg(not(target_arch = "wasm32"))]
mod native;
#[cfg(not(target_arch = "wasm32"))]
pub use native::*;

pub use std::time::Duration;