diff options
Diffstat (limited to '3rdparty/unittest-cpp/UnitTest++/Posix/TimeHelpers.h')
-rw-r--r-- | 3rdparty/unittest-cpp/UnitTest++/Posix/TimeHelpers.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/3rdparty/unittest-cpp/UnitTest++/Posix/TimeHelpers.h b/3rdparty/unittest-cpp/UnitTest++/Posix/TimeHelpers.h new file mode 100644 index 00000000000..0de4b1a9c7e --- /dev/null +++ b/3rdparty/unittest-cpp/UnitTest++/Posix/TimeHelpers.h @@ -0,0 +1,28 @@ +#ifndef UNITTEST_TIMEHELPERS_H +#define UNITTEST_TIMEHELPERS_H + +#include <sys/time.h> + +namespace UnitTest { + +class Timer +{ +public: + Timer(); + void Start(); + double GetTimeInMs() const; + +private: + struct timeval m_startTime; +}; + + +namespace TimeHelpers +{ + void SleepMs(int ms); +} + + +} + +#endif |