1 #ifndef BLANK_APP_INTERVALTIMER_HPP
2 #define BLANK_APP_INTERVALTIMER_HPP
10 explicit IntervalTimer(int interval_ms) noexcept
11 : intv(interval_ms) { }
13 void Start() noexcept {
16 void Stop() noexcept {
21 bool Running() const noexcept {
24 bool Hit() const noexcept {
25 return Running() && value % intv < last_dt;
27 int Elapsed() const noexcept {
30 int Iteration() const noexcept {
34 void Update(int dt) noexcept {