summaryrefslogtreecommitdiff
path: root/shared/perf.h
diff options
context:
space:
mode:
Diffstat (limited to 'shared/perf.h')
-rw-r--r--shared/perf.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/shared/perf.h b/shared/perf.h
index 8bd89643..f62f9cc0 100644
--- a/shared/perf.h
+++ b/shared/perf.h
@@ -25,6 +25,11 @@
#define DEPRECATED(x) __declspec(deprecated) x
#endif
+//two macros for quick performance measurements
+#define PERF_START CpuTimer perfTest;
+#define PERF_STOP perfTest.showResult();
+
+
class CpuTimer
{
public:
@@ -74,8 +79,4 @@ private:
bool resultShown;
};
-//two macros for quick performance measurements
-#define PERF_START CpuTimer perfTest;
-#define PERF_STOP perfTest.showResult();
-
#endif //DEBUG_PERF_HEADER
bgstack15