From e8de2aeeea25fc4d0c878872018f21dc55f8d0c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Tue, 20 Jun 2023 10:31:11 +0200 Subject: [PATCH] Fix #9398 (Incorrect "Overall Time" in timing info) (#5173) --- lib/timer.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/timer.cpp b/lib/timer.cpp index 1b1603a6f..c5d3dfd12 100644 --- a/lib/timer.cpp +++ b/lib/timer.cpp @@ -60,6 +60,10 @@ void TimerResults::showResults(SHOWTIME_MODES mode) const const double secAverage = sec / (double)(iter->second.mNumberOfResults); bool hasParent = false; { + // Do not use valueFlow.. in "Overall time" because those are included in Tokenizer already + if (iter->first.compare(0,9,"valueFlow") == 0) + hasParent = true; + // Do not use inner timers in "Overall time" const std::string::size_type pos = iter->first.rfind("::"); if (pos != std::string::npos)