9 : period(0), cycle_start(0), cyclic(false)
18 Timer2::start(float period, bool cyclic)
20 this->period = period;
21 this->cyclic = cyclic;
22 cycle_start = global_time;
31 if(global_time - cycle_start >= period) {
33 cycle_start = global_time - fmodf(global_time - cycle_start, period);