From a1c91f4695e208d5a8f80dc37b1818169b7829ff Mon Sep 17 00:00:00 2001 From: Daniel Wilhelm Date: Fri, 18 Apr 2014 17:24:59 +0200 Subject: 5.17 --- zen/perf.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'zen/perf.h') diff --git a/zen/perf.h b/zen/perf.h index 4a334bff..ccaa3f07 100644 --- a/zen/perf.h +++ b/zen/perf.h @@ -10,7 +10,7 @@ #include "deprecate.h" #include "tick_count.h" -#ifdef FFS_WIN +#ifdef ZEN_WIN #include #else #include @@ -33,7 +33,7 @@ public: ticksPerSec_(ticksPerSec()), startTime(), resultShown(false) { //std::clock() - "counts CPU time in C and wall time in VC++" - WTF!??? -#ifdef FFS_WIN +#ifdef ZEN_WIN if (::SetThreadAffinityMask(::GetCurrentThread(), 1) == 0) //"should not be required unless there are bugs in BIOS or HAL" - msdn, QueryPerformanceCounter throw TimerError(); #endif @@ -51,7 +51,7 @@ public: throw TimerError(); const auto delta = static_cast(1000.0 * dist(startTime, now) / ticksPerSec_); -#ifdef FFS_WIN +#ifdef ZEN_WIN std::ostringstream ss; ss << delta << " ms"; ::MessageBoxA(nullptr, ss.str().c_str(), "Timer", 0); -- cgit