diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:12:17 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:12:17 +0200 |
commit | b654dbfa5f3e4a4d02f72023f7c5895635aa6396 (patch) | |
tree | 8c1dfe7f638c0fc7afc1d08bc2fc0fd0f8646e5e /shared/perf.h | |
parent | 3.17 (diff) | |
download | FreeFileSync-b654dbfa5f3e4a4d02f72023f7c5895635aa6396.tar.gz FreeFileSync-b654dbfa5f3e4a4d02f72023f7c5895635aa6396.tar.bz2 FreeFileSync-b654dbfa5f3e4a4d02f72023f7c5895635aa6396.zip |
3.18
Diffstat (limited to 'shared/perf.h')
-rw-r--r-- | shared/perf.h | 9 |
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 |