1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//! Instant and duration definitions
//!
//!
//! # Clock requirements
//!
//! The clock that generates instants must be monotonic (its instant values never decrease),
//! except that it may overflow when it reaches an implementation-defined maximum time value.
//!
//! The instant type must be able to correctly calculate the duration between two instants
//! when overflow has happened once. If overflow has happened more than once between two instants,
//! the calculated duration will be too short.
//!
use ;
/// A duration represented as a 32-bit number of microseconds
///
/// This type can represent durations of up to about 1 hour.
pub type MicrosecondDuration32 = MicrosDurationU32;
/// An instant represented as a 32-bit number of microseconds
///
/// This type overflows after about 1 hour.
pub type Microseconds32 = ;
/// Something that can provide the current time
/// Creates a duration from a number of milliseconds
///
/// # Panics
///
/// This function panics if the provided number of milliseconds, converted into microseconds,
/// is too large for a u32
pub const