mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 09:37:14 +02:00
commit
88ca5520be
1 changed files with 2 additions and 0 deletions
|
@ -27,6 +27,8 @@ public:
|
||||||
float currentCount = _count;
|
float currentCount = _count;
|
||||||
float intervalSeconds = (float)currentIntervalMs / (float)MSECS_PER_SECOND;
|
float intervalSeconds = (float)currentIntervalMs / (float)MSECS_PER_SECOND;
|
||||||
_rate = roundf(currentCount / intervalSeconds * _scale) / _scale;
|
_rate = roundf(currentCount / intervalSeconds * _scale) / _scale;
|
||||||
|
_start = now;
|
||||||
|
_count = 0;
|
||||||
};
|
};
|
||||||
_count += count;
|
_count += count;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue