get_sleep_time Function

Defined in pyglet.clock


Get the time until the next item is scheduled on the default clock.

See Clock.get_sleep_time for details.

Parameters:sleep_idle (bool) – If True, the application intends to sleep through its idle time; otherwise it will continue ticking at the maximum frame rate allowed.
Return type:float
Returns:Time until the next scheduled event in seconds, or None if there is no event scheduled.


Since pyglet 1.1

Previous topic

get_fps_limit Function

Next topic

schedule Function