Struct three::Timer
[−]
[src]
pub struct Timer { /* fields omitted */ }
Timer can be used to find the time difference between the moment of timer creation and the
moment of calling elapsed
.
Methods
impl Timer
[src]
pub fn new() -> Self
[src]
Create new timer based on current system time.
pub fn reset(&mut self)
[src]
Reset time of creation to current time.
pub fn elapsed(&self) -> f32
[src]
Get period of time since timer creation in seconds.
Trait Implementations
impl Clone for Timer
[src]
fn clone(&self) -> Timer
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Timer
[src]
impl Debug for Timer
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more