[][src]Module tetra::time

Functions and types relating to measuring and manipulating time.

Functions

duration_to_f64

Converts a std::time::Duration to an f64. This is less accurate, but usually more useful.

f64_to_duration

Converts an f64 to a std::time::Duration.

get_fps

Returns the current frame rate, averaged out over the last 200 frames.

get_tick_rate

Gets the update tick rate of the application, in ticks per second.

set_tick_rate

Sets the update tick rate of the application, in ticks per second.