Defined in pyglet.clock
tick
(poll=False)¶Signify that one frame has passed on the default clock.
This will call any scheduled functions that have elapsed.
Parameters: | poll (bool) – If True, the function will call any scheduled functions but will not sleep or busy-wait for any reason. Recommended for advanced applications managing their own sleep timers only. Since pyglet 1.1. |
---|---|
Return type: | float |
Returns: | The number of seconds since the last “tick”, or 0 if this was the first frame. |