summaryrefslogtreecommitdiffstats
path: root/test/src/test-misc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/src/test-misc.cpp')
-rw-r--r--test/src/test-misc.cpp23
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