diff options
author | Daniel Wilhelm <daniel@wili.li> | 2015-10-02 14:55:46 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2015-10-02 14:55:46 +0200 |
commit | b32d1e948b32a8f7607ebc30f10dda903426f63c (patch) | |
tree | 7fa78f18308671970198981b650e237bcd84957e /zen/perf.h | |
parent | 7.0 (diff) | |
download | FreeFileSync-b32d1e948b32a8f7607ebc30f10dda903426f63c.tar.gz FreeFileSync-b32d1e948b32a8f7607ebc30f10dda903426f63c.tar.bz2 FreeFileSync-b32d1e948b32a8f7607ebc30f10dda903426f63c.zip |
7.1
Diffstat (limited to 'zen/perf.h')
-rw-r--r-- | zen/perf.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |