Struct amethyst_engine::SteadyTime [] [src]

pub struct SteadyTime(_);

A structure representing a moment in time.

SteadyTimes 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();
}

Methods

impl SteadyTime
[src]

Returns a SteadyTime representing the current moment in time.

Trait Implementations

impl Clone for SteadyTime
[src]

impl Display for SteadyTime
[src]

impl PartialOrd<SteadyTime> for SteadyTime
[src]

impl Sub<SteadyTime> for SteadyTime
[src]

impl Sub<Duration> for SteadyTime
[src]

impl Copy for SteadyTime
[src]

impl Add<Duration> for SteadyTime
[src]

impl Ord for SteadyTime
[src]

impl Eq for SteadyTime
[src]

impl PartialEq<SteadyTime> for SteadyTime
[src]

impl Debug for SteadyTime
[src]