root/library/tests/unittest-cpp/Posix/TimeHelpers.h @ 706

Revision 706, 291 bytes (checked in by smidl, 15 years ago)

eol-native

  • Property svn:eol-style set to native
RevLine 
[418]1#ifndef UNITTEST_TIMEHELPERS_H
2#define UNITTEST_TIMEHELPERS_H
3
4#include <sys/time.h>
5
6namespace UnitTest {
7
[477]8class Timer {
[418]9public:
[477]10        Timer();
11        void Start();
12        double GetTimeInMs() const;
[418]13
14private:
[477]15        struct timeval m_startTime;
[418]16};
17
18
[477]19namespace TimeHelpers {
20void SleepMs ( int ms );
[418]21}
22
23
24}
25
26#endif
Note: See TracBrowser for help on using the browser.