comparison ext/UnitTest++/src/Posix/TimeHelpers.h @ 37:0d325e9d5953

added unittest++ files into ext. Not hooked into build scripts yet
author jasoka@33b003aa-7bff-0310-803a-e67f0ece8222
date Sat, 12 Jul 2008 12:00:57 +0000
parents
children
comparison
equal deleted inserted replaced
36:6f1227f4932b 37:0d325e9d5953
1 #ifndef UNITTEST_TIMEHELPERS_H
2 #define UNITTEST_TIMEHELPERS_H
3
4 #include <sys/time.h>
5
6 namespace UnitTest {
7
8 class Timer
9 {
10 public:
11 Timer();
12 void Start();
13 int GetTimeInMs() const;
14
15 private:
16 struct timeval m_startTime;
17 };
18
19
20 namespace TimeHelpers
21 {
22 void SleepMs (int ms);
23 }
24
25
26 }
27
28 #endif