clock.Timer
Methods
- Timer.next_frame() Tuple[float, float] [source]
Get the time and frametime for the next frame. This should only be called once per frame.
- Returns:
current time and frametime
- Return type:
Tuple[float, float]
Attributes
- Timer.is_paused
The pause state of the timer
- Type:
bool
- Timer.is_running
Is the timer currently running?
- Type:
bool
- Timer.time
Get or set the current time. This can be used to jump around in the timeline.
- Returns:
The current time in seconds