summaryrefslogtreecommitdiff
path: root/zen/perf.h
diff options
context:
space:
mode:
Diffstat (limited to 'zen/perf.h')
-rw-r--r--zen/perf.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/zen/perf.h b/zen/perf.h
index f9970d0a..688043a7 100644
--- a/zen/perf.h
+++ b/zen/perf.h
@@ -8,15 +8,9 @@
#define DEBUG_PERF_HEADER
#include <sstream>
+#include "deprecate.h"
#include "win.h" //includes "windows.h"
-#ifdef __MINGW32__
-#define DEPRECATED(x) x __attribute__ ((deprecated))
-#elif defined _MSC_VER
-#define DEPRECATED(x) __declspec(deprecated) x
-#endif
-
-
//two macros for quick performance measurements
#define PERF_START CpuTimer perfTest;
#define PERF_STOP perfTest.showResult();
@@ -26,7 +20,8 @@ class CpuTimer
public:
class TimerError {};
- DEPRECATED(CpuTimer()) : frequency(), startTime(), resultShown(false)
+ ZEN_DEPRECATE
+ CpuTimer() : frequency(), startTime(), resultShown(false)
{
SetThreadAffinity dummy;
if (!::QueryPerformanceFrequency(&frequency)) throw TimerError();
bgstack15