This function stops the given Time Source and resets its timer. You cannot stop a Time Source that has either not started, or is in a finished state.
time_source_stop(id);
Argument | Type | Description |
---|---|---|
id | Time Source | The Time Source to stop |
N/A
if (time_source_get_state(time_source) != time_source_state_stopped)
{
time_source_stop(time_source);
}
The code above will stop a Time Source when it's not already stopped.