summaryrefslogtreecommitdiff
path: root/zen/perf.h
diff options
context:
space:
mode:
Diffstat (limited to 'zen/perf.h')
-rw-r--r--zen/perf.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/zen/perf.h b/zen/perf.h
index 92350602..4a334bff 100644
--- a/zen/perf.h
+++ b/zen/perf.h
@@ -29,11 +29,13 @@ public:
class TimerError {};
ZEN_DEPRECATE
- PerfTimer() : ticksPerSec_(ticksPerSec()), startTime(), resultShown(false)
+ PerfTimer() : //throw TimerError
+ ticksPerSec_(ticksPerSec()), startTime(), resultShown(false)
{
//std::clock() - "counts CPU time in C and wall time in VC++" - WTF!???
#ifdef FFS_WIN
- if (::SetThreadAffinityMask(::GetCurrentThread(), 1) == 0) throw TimerError(); //"should not be required unless there are bugs in BIOS or HAL" - msdn, QueryPerformanceCounter
+ if (::SetThreadAffinityMask(::GetCurrentThread(), 1) == 0) //"should not be required unless there are bugs in BIOS or HAL" - msdn, QueryPerformanceCounter
+ throw TimerError();
#endif
startTime = getTicks();
if (ticksPerSec_ == 0 || !startTime.isValid())
bgstack15