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