diff options
author | Morgan Deters <mdeters@cs.nyu.edu> | 2012-12-18 15:33:43 -0500 |
---|---|---|
committer | Morgan Deters <mdeters@cs.nyu.edu> | 2013-01-24 16:22:42 -0500 |
commit | 73760b3c213733fc98d67f9ceeb74d06b01a3777 (patch) | |
tree | 8840f595428560499bc6739513ac3a1fbb2746ca /src/util/statistics_registry.h | |
parent | 1435948e241d3134d44662b9476935fe635b4166 (diff) |
Add win32 support (merge from mdeters/win32, with some cleanup).
Diffstat (limited to 'src/util/statistics_registry.h')
-rw-r--r-- | src/util/statistics_registry.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/src/util/statistics_registry.h b/src/util/statistics_registry.h index 3bf990dbb..0a5450b8a 100644 --- a/src/util/statistics_registry.h +++ b/src/util/statistics_registry.h @@ -612,6 +612,8 @@ public: };/* class StatisticsRegistry */ +#ifndef __WIN32__ + /****************************************************************************/ /* Some utility functions for timespec */ /****************************************************************************/ @@ -765,6 +767,25 @@ public: };/* class TimerStat */ +#else /* __WIN32__ */ + +class CodeTimer; + +class TimerStat : public IntStat { +public: + + typedef CVC4::CodeTimer CodeTimer; + + TimerStat(const std::string& name) : + IntStat(name, 0) { + } + + void start(); + void stop(); + +};/* class TimerStat */ + +#endif /* __WIN32__ */ /** * Utility class to make it easier to call stop() at the end of a @@ -788,7 +809,6 @@ public: } };/* class CodeTimer */ - /** * To use a statistic, you need to declare it, initialize it in your * constructor, register it in your constructor, and deregister it in |