Trait concurrency_traits::TimeFunctions [−][src]
pub trait TimeFunctions { type InstantType: Add<Duration, Output = Self::InstantType> + Sub<Duration, Output = Self::InstantType> + Sub<Self::InstantType, Output = Duration> + Ord + Copy; fn current_time(self) -> Self::InstantType; }
Functions to interact with system time.
Associated Types
type InstantType: Add<Duration, Output = Self::InstantType> + Sub<Duration, Output = Self::InstantType> + Sub<Self::InstantType, Output = Duration> + Ord + Copy
[src]
The type of an instant for this system. Analog for std::time::Instant
.
Required methods
fn current_time(self) -> Self::InstantType
[src]
Get the current instant. Analog for std::time::Instant::now
.
Implementors
impl TimeFunctions for &StdThreadFunctions
[src]
impl TimeFunctions for &StdThreadFunctions
[src]