/extlibs/UnitTest++/source/Posix/TimeHelpers.h
https://bitbucket.org/hugoruscitti/pilascpp · C++ Header · 28 lines · 19 code · 9 blank · 0 comment · 0 complexity · 193ebb1b29949c31f3980c360d77c242 MD5 · raw file
- #ifndef UNITTEST_TIMEHELPERS_H
- #define UNITTEST_TIMEHELPERS_H
-
- #include <sys/time.h>
-
- namespace UnitTest {
-
- class Timer
- {
- public:
- Timer();
- void Start();
- int GetTimeInMs() const;
-
- private:
- struct timeval m_startTime;
- };
-
-
- namespace TimeHelpers
- {
- void SleepMs (int ms);
- }
-
-
- }
-
- #endif