MICROSECOND

Constant MICROSECOND 

Source
pub const MICROSECOND: Duration;
Expand description

A microsecond. Useful for rounding Duration.

use roundable::{MICROSECOND, Roundable, Tie};
use std::time::Duration;

assert!(MICROSECOND == Duration::from_nanos(500).round_to(MICROSECOND, Tie::Up));