Struct gameloop_timing::tickloop::TickLoopEvent[][src]

pub struct TickLoopEvent {
    pub target_tickrate: u32,
    pub time: Instant,
    pub duration: Duration,
    pub ticks: u64,
}
Expand description

Event that is spawned when a tick occurs.

Fields

target_tickrate: u32

The targeted tick-rate.

time: Instant

The current point in time.

duration: Duration

The intended tick Duration.

ticks: u64

The total number of ticks the gameloop went trough.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.