14 #include <QLoggingCategory>
17 Q_DECLARE_LOGGING_CATEGORY(timers_category)
37 #define TIMER_DEBUG TIMER_ACTIVE
39 #define TIMER_DEBUG TIMER_IGNORE
void timer_destroy(civtimer *t)
Deletes timer.
double timer_read_seconds(civtimer *t)
Read value from timer.
civtimer * timer_new(enum timer_timetype type, enum timer_use use)
Allocate a new timer with specified "type" and "use".
void timer_start(civtimer *t)
Start timing, adding to previous accumulated time if timer has not been cleared.
void timer_clear(civtimer *t)
Reset accumulated time to zero, and stop timer if going.
civtimer * timer_renew(civtimer *t, enum timer_timetype type, enum timer_use use)
Allocate a new timer, or reuse t, with specified "type" and "use".
bool timer_in_use(civtimer *t)
Return whether timer is in use.
void timer_stop(civtimer *t)
Stop timing, and accumulate time so far.