diff --git a/src/engine/Module.cpp b/src/engine/Module.cpp index ca54191a..1bc3cf39 100644 --- a/src/engine/Module.cpp +++ b/src/engine/Module.cpp @@ -349,7 +349,9 @@ void Module::doProcess(const ProcessArgs& args) { // Stop CPU timer if (meterEnabled) { double endTime = system::getTime(); - float duration = endTime - startTime; + // Subtract call time of getTime() itself, since we only want to measure process() time. + double endTime2 = system::getTime(); + float duration = (endTime - startTime) - (endTime2 - endTime); internal->meterSamples++; internal->meterDurationTotal += duration;