时间源状态

时间源状态常量
常量描述
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_state_initial

可以使用 time_source_start()time_source_stop()time_source_pause() 来更改状态。

时间源的状态使用 time_source_get_state() 返回。