Module tetra::time

source ·
Expand description

Functions and types relating to measuring and manipulating time.

Enums

  • The different timestep modes that a game can have.

Functions

  • Returns the amount of time that has accumulated between updates.
  • Returns a value between 0.0 and 1.0, representing how far between updates the game loop currently is.
  • Returns a precise value between 0.0 and 1.0, representing how far between updates the game loop currently is.
  • Returns the amount of time that has passed since the last update or draw.
  • Returns the current frame rate, averaged out over the last 200 frames.
  • Gets the current timestep of the application.
  • Sets the timestep of the application.