]> git.mxchange.org Git - simgear.git/commitdiff
performance monitor: start measurement interval with a fresh timestamp.
authorThorstenB <brehmt@gmail.com>
Thu, 5 Apr 2012 17:30:00 +0000 (19:30 +0200)
committerThorstenB <brehmt@gmail.com>
Thu, 5 Apr 2012 17:30:00 +0000 (19:30 +0200)
simgear/structure/SGPerfMon.cxx

index 68bdd9f0892a9de0146f86a3188ba20538e8bd3b..11968b4cec76715670d01cd5a9d5b09e1866189e 100644 (file)
@@ -76,7 +76,10 @@ SGPerformanceMonitor::update(double dt)
         // flag has changed, update subsystem manager
         _isEnabled = _statisticsFlag->getBoolValue();
         if (_isEnabled)
+        {
             _subSysMgr->setReportTimingCb(this,&subSystemMgrHook);
+            _lastUpdate.stamp();
+        }
         else
             _subSysMgr->setReportTimingCb(this,0);
     }