summaryrefslogtreecommitdiff
path: root/zen/perf.h
diff options
context:
space:
mode:
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