summaryrefslogtreecommitdiff
path: root/zen/perf.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2015-10-02 14:55:46 +0200
committerDaniel Wilhelm <daniel@wili.li>2015-10-02 14:55:46 +0200
commitb32d1e948b32a8f7607ebc30f10dda903426f63c (patch)
tree7fa78f18308671970198981b650e237bcd84957e /zen/perf.h
parent7.0 (diff)
downloadFreeFileSync-b32d1e948b32a8f7607ebc30f10dda903426f63c.tar.gz
FreeFileSync-b32d1e948b32a8f7607ebc30f10dda903426f63c.tar.bz2
FreeFileSync-b32d1e948b32a8f7607ebc30f10dda903426f63c.zip
7.1
Diffstat (limited to 'zen/perf.h')
-rw-r--r--zen/perf.h8
1 files changed, 4 insertions, 4 deletions
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
bgstack15