Time Source States

Time Source State Constant
ConstantDescriptionValue
time_source_state_initialThe Time Source has not been started yet0
time_source_state_activeThe Time Source has been started and is counting down1
time_source_state_pausedThe Time Source is paused2
time_source_state_stoppedThe Time Source was stopped or it completely expired3

Time Source can have a state, which can be any one of the constants above. The default state for a newly-created Time Source is time_source_state_initial.

The state can be changed using time_source_start(), time_source_stop(), and time_source_pause().

The state of a Time Source is returned using time_source_get_state().