Struct time::SteadyTime [−][src]
pub struct SteadyTime(_);
Expand description
A structure representing a moment in time.
SteadyTime
s are generated by a “steady” clock, that is, a clock which
never experiences discontinuous jumps and for which time always flows at
the same rate.
Examples
Repeatedly call a function for 1 second:
let start = SteadyTime::now();
while SteadyTime::now() - start < Duration::seconds(1) {
do_some_work();
}
Implementations
Returns a SteadyTime
representing the current moment in time.
Trait Implementations
type Output = SteadyTime
type Output = SteadyTime
The resulting type after applying the +
operator.
Performs the +
operation. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
type Output = SteadyTime
type Output = SteadyTime
The resulting type after applying the -
operator.
Performs the -
operation. Read more
Auto Trait Implementations
impl RefUnwindSafe for SteadyTime
impl Send for SteadyTime
impl Sync for SteadyTime
impl Unpin for SteadyTime
impl UnwindSafe for SteadyTime
Blanket Implementations
Mutably borrows from an owned value. Read more