Struct quicksilver::Timer
[−]
[src]
pub struct Timer { /* fields omitted */ }
A structure that allows accumulation of actions in a loop
Methods
impl Timer
[src]
fn new() -> Timer
[src]
Create a timer that will tick at the first opportunity
fn tick<F>(&mut self, action: F) where
F: FnMut() -> Duration,
[src]
F: FnMut() -> Duration,
For as many times as appopriate, update
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