[][src]Struct bevy_core::Time

pub struct Time { /* fields omitted */ }

Tracks elapsed time since the last update and since the App has started

Implementations

impl Time[src]

pub fn update(&mut self)[src]

pub fn delta(&self) -> Duration[src]

The delta between the current tick and last tick as a Duration

pub fn delta_seconds(&self) -> f32[src]

The delta between the current and last tick as f32 seconds

pub fn delta_seconds_f64(&self) -> f64[src]

The delta between the current and last tick as f64 seconds

pub fn seconds_since_startup(&self) -> f64[src]

The time since startup in seconds

pub fn startup(&self) -> Instant[src]

The [Instant] the app was started

pub fn last_update(&self) -> Option<Instant>[src]

The ['Instant'] when Time::update was last called, if it exists

pub fn time_since_startup(&self) -> Duration[src]

Trait Implementations

impl Debug for Time[src]

impl Default for Time[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Component for T where
    T: 'static + Send + Sync
[src]

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

impl<T> From<T> for T[src]

impl<T> FromResources for T where
    T: Default
[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Resource for T where
    T: 'static + Send + Sync
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,