diff options
author | Stefan Radomski <sradomski@mintwerk.de> | 2016-01-10 02:39:24 (GMT) |
---|---|---|
committer | Stefan Radomski <sradomski@mintwerk.de> | 2016-01-10 02:39:24 (GMT) |
commit | c699a4057a65a9a09f78310d8e12588f2dc072cd (patch) | |
tree | 4525cd9418975a954e9a1c32faa6d5d8821fe499 /src/uscxml/concurrency/Timer.h | |
parent | 9f4d810400550d1b98ab944cd96f937720eb6b0d (diff) | |
download | uscxml-c699a4057a65a9a09f78310d8e12588f2dc072cd.zip uscxml-c699a4057a65a9a09f78310d8e12588f2dc072cd.tar.gz uscxml-c699a4057a65a9a09f78310d8e12588f2dc072cd.tar.bz2 |
Builds with MSVC again
Diffstat (limited to 'src/uscxml/concurrency/Timer.h')
-rw-r--r-- | src/uscxml/concurrency/Timer.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/uscxml/concurrency/Timer.h b/src/uscxml/concurrency/Timer.h index 60a20a3..217f68f 100644 --- a/src/uscxml/concurrency/Timer.h +++ b/src/uscxml/concurrency/Timer.h @@ -7,6 +7,8 @@ #ifndef MONOTONIC_TIMER_H_ #define MONOTONIC_TIMER_H_ +#include "uscxml/Common.h" + // Returns seconds since some unspecified start time (guaranteed to be // monotonicly increasing). @@ -31,6 +33,10 @@ public: invocations++; } + void reset() { + elapsed = 0; + } + void stop() { if (invocations == 0) return; |