diff options
author | Stefan Radomski <sradomski@mintwerk.de> | 2016-01-08 22:15:37 (GMT) |
---|---|---|
committer | Stefan Radomski <sradomski@mintwerk.de> | 2016-01-08 22:15:37 (GMT) |
commit | 9f4d810400550d1b98ab944cd96f937720eb6b0d (patch) | |
tree | a30226ae642e54e217c9b89523d75f1346d5f7cb /test/src/test-misc.cpp | |
parent | f9eb54fc9c17116954846133b33f7a241e662cbc (diff) | |
download | uscxml-9f4d810400550d1b98ab944cd96f937720eb6b0d.zip uscxml-9f4d810400550d1b98ab944cd96f937720eb6b0d.tar.gz uscxml-9f4d810400550d1b98ab944cd96f937720eb6b0d.tar.bz2 |
Fixed compilation for gcc on Linux again
Diffstat (limited to 'test/src/test-misc.cpp')
-rw-r--r-- | test/src/test-misc.cpp | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/test/src/test-misc.cpp b/test/src/test-misc.cpp index 09cda31..6259d57 100644 --- a/test/src/test-misc.cpp +++ b/test/src/test-misc.cpp @@ -1,3 +1,24 @@ +#include "uscxml/config.h" +#include "uscxml/Common.h" +#include "uscxml/concurrency/Timer.h" +#include "uscxml/concurrency/tinythread.h" + +#include <iostream> + +using namespace uscxml; + +Timer t1; + +bool testTimers() { + { + Measurement m(&t1); + tthread::this_thread::sleep_for(tthread::chrono::milliseconds(1000)); + } + std::cout << t1.elapsed << std::endl; + return true; +} + int main(int argc, char** argv) { - return 0; + testTimers(); + return 0; }
\ No newline at end of file |