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]
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] |