From 1a835a2e1b06ac4eb87fc1c72175cf54728b3fb3 Mon Sep 17 00:00:00 2001 From: ThorstenB Date: Thu, 5 Apr 2012 19:30:00 +0200 Subject: [PATCH] performance monitor: start measurement interval with a fresh timestamp. --- simgear/structure/SGPerfMon.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/simgear/structure/SGPerfMon.cxx b/simgear/structure/SGPerfMon.cxx index 68bdd9f0..11968b4c 100644 --- a/simgear/structure/SGPerfMon.cxx +++ b/simgear/structure/SGPerfMon.cxx @@ -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); }