pub struct Time {
pub elapsed: f32,
pub delta: f32,
pub fixed_delta: f32,
pub frame: u64,
}Expand description
Engine time information
Fields§
§elapsed: f32Total elapsed time since start (seconds)
delta: f32Delta time for this frame (seconds)
fixed_delta: f32Fixed timestep for physics
frame: u64Current frame number
Trait Implementations§
impl Copy for Time
Auto Trait Implementations§
impl Freeze for Time
impl RefUnwindSafe for Time
impl Send for Time
impl Sync for Time
impl Unpin for Time
impl UnwindSafe for Time
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more