From b32d1e948b32a8f7607ebc30f10dda903426f63c Mon Sep 17 00:00:00 2001 From: Daniel Wilhelm Date: Fri, 2 Oct 2015 14:55:46 +0200 Subject: 7.1 --- zen/perf.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'zen/perf.h') diff --git a/zen/perf.h b/zen/perf.h index f43bc00f..e52bf662 100644 --- a/zen/perf.h +++ b/zen/perf.h @@ -41,7 +41,7 @@ public: throw TimerError(); } - ~PerfTimer() { if (!resultShown) try { showResult(); } catch (TimerError&){} } + ~PerfTimer() { if (!resultShown) try { showResult(); } catch (TimerError&) {} } void pause() { @@ -67,7 +67,7 @@ public: paused = false; elapsedUntilPause = 0; } - + int64_t timeMs() const { int64_t ticksTotal = elapsedUntilPause; @@ -78,8 +78,8 @@ public: void showResult() { - const bool wasRunning = !paused; - if (wasRunning) pause(); //don't include call to MessageBox()! + const bool wasRunning = !paused; + if (wasRunning) pause(); //don't include call to MessageBox()! ZEN_ON_SCOPE_EXIT(if (wasRunning) resume()); #ifdef ZEN_WIN -- cgit