summaryrefslogtreecommitdiffstats
path: root/test/src/test-misc.cpp
blob: 504b6a6dbc9e5087ced5da0c1c3740998c7c40aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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) {
	testTimers();
	return 0;
}