Struct specs_time::Time
[−]
[src]
pub struct Time<T> where
T: Copy + Float, { /* fields omitted */ }
Methods
impl<T> Time<T> where
T: Copy + Float,
[src]
T: Copy + Float,
fn new() -> Self
[src]
fn frame(&self) -> usize
[src]
fn delta(&self) -> T
[src]
fn current(&self) -> T
[src]
fn total(&self) -> T
[src]
fn fps(&self) -> T
[src]
fn set_scale(&mut self, scale: T)
[src]
fn scale(&self) -> T
[src]
fn fixed_delta(&self) -> T
[src]
fn set_fixed_delta(&mut self, fixed_delta: T)
[src]
fn update(&mut self, current_time: T) -> &mut Self
[src]
Trait Implementations
impl<T: Debug> Debug for Time<T> where
T: Copy + Float,
[src]
T: Copy + Float,
impl<T: Clone> Clone for Time<T> where
T: Copy + Float,
[src]
T: Copy + Float,