15 #include <QElapsedTimer>
35 : QElapsedTimer(), state(
TIMER_STOPPED), type(ttype), use(tuse),
103 qCritical(
"tried to start already started timer");
124 qCritical(
"tried to stop already stopped timer");
127 t->
msec = t->elapsed();
128 t->
sec = (double(t->elapsed()) / 1000);
civtimer(enum timer_timetype type, enum timer_use use)
#define fc_assert_ret(condition)
#define fc_assert_ret_val(condition, val)
Q_LOGGING_CATEGORY(tileset_category, "freeciv.tileset")
Functions for handling the tilespec files which describe the files and contents of tilesets.
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.