get_sleep_time

Function defined in pyglet.clock

get_sleep_time(sleep_idle)

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

Next topic

schedule