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.

Loading content...

Required methods

fn current_time(self) -> Self::InstantType[src]

Get the current instant. Analog for std::time::Instant::now.

Loading content...

Implementors

Loading content...