task_clock_start

Definition: task_clock_start()
Description: Restart the clock used for scheduling real-time tasks. Call this routine, some time after calling task_clock_stop(), when you want scheduling of real-time tasks to continue.
Comments: task_clock_stop() and task_clock_start() can be used to freeze the scheduling of real-time tasks. task_clock_start() causes the scheduled times of all real-time tasks to be incremented by the amount of time since task_clock_stop() was called. This allows a game, simulation, or other program to continue smoothly.

Time-shared tasks are not affected.
Example:
 -- freeze the game while the player answers the phone
task_clock_stop()
while get_key()=-1 do
    sleep(0.25)
end while
task_clock_start()
See Also: task_clock_stop, task_schedule, task_yield, task_suspend