MILLISECOND

Constant MILLISECOND 

Source
pub const MILLISECOND: Duration;
Expand description

A millisecond. Useful for rounding Duration.

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

assert!(MILLISECOND == Duration::from_micros(500).round_to(MILLISECOND, Tie::Up));