Revert "modify PBD::TimingStats to discard the first 1000 recorded values to avoid too much influence from chaotic startup conditions"

This reverts commit 7bce9899c0.

1000 at 8192 samples @ 44.1 is > 3 mins; counter may have overflowed. Not a necessary change.
This commit is contained in:
Paul Davis
2021-06-11 18:53:46 -06:00
parent 1777cf8f69
commit 1b505ddcb1

View File

@@ -131,11 +131,8 @@ public:
void update ()
{
/* throw away the first 1000 values */
if (_update_cnt++ > 1000) {
Timing::update ();
calc ();
}
Timing::update ();
calc ();
}
/* interval computed externally */
@@ -158,7 +155,6 @@ public:
_avg = 0.;
_vm = 0.;
_vs = 0.;
_update_cnt = 0;
}
bool valid () const {
@@ -211,7 +207,6 @@ private:
double _avg;
double _vm;
double _vs;
uint64_t _update_cnt;
};
class LIBPBD_API TimerRAII