29 oruw_timer(
const char* timer_id,
const unsigned int timer_limit_ms) :
id(timer_id)
32 limit = (double) timer_limit_ms / 1000;
56 return (timediff <=
limit);
67 #endif // ORUW_TIMER_H
Log time of existance on destruction. Throw an error, if the given upper limit is not satisfied.
bool check()
Checks if the limit is satisfied, logs a message.
oruw_timer(const char *timer_id, const unsigned int timer_limit_ms)
Create a timer.
void reset()
Reset timer to the current time.
#define ORUW_LOG_MESSAGE(...)
qi::os::timeval start_time