diff options
Diffstat (limited to 'src/utils/perfstat.cpp')
-rw-r--r-- | src/utils/perfstat.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils/perfstat.cpp b/src/utils/perfstat.cpp index 479e97033..2e069c7f9 100644 --- a/src/utils/perfstat.cpp +++ b/src/utils/perfstat.cpp @@ -115,7 +115,7 @@ namespace Perf const int val2 = perf.ticks[counterId]; if (val2 >= val1) return val2 - val1; - return val1 - val1; + return val1 - val2; } int getWorstTime(const size_t counterId) @@ -124,6 +124,6 @@ namespace Perf const int val2 = worstFrameStats.ticks[counterId]; if (val2 >= val1) return val2 - val1; - return val1 - val1; + return val1 - val2; } -} +} // namespace Perf |