16 time_t temp_time = time(0);
18 isPassed(temp_time, temp_iv, temp_iv);
unsigned int forcePassed(time_t time, unsigned int &oldinterval)
method
unsigned int m_current_interval
TimeDivider(unsigned int intervals, unsigned int duration, unit u)
construct the TimeDivider
bool isPassed(time_t time, unsigned int &newinterval, unsigned int &oldinterval)
method to know if one shoudl switch to new interval
int count(std::string s, const std::string ®x)
count how many occurances of a regx are in a string