update method
Implementation
bool update(double dt) {
if (_running) {
if (_isFirstTick && tickFirstUpdate) {
_isFirstTick = false;
onTick?.call();
return true;
}
_currentTime += dt;
if (_currentTime >= _intervalSeconds) {
onTick?.call();
reset();
return true;
}
}
return false;
}