Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing/UnitTest++/src/Posix/TimeHelpers.h')
-rw-r--r--src/testing/UnitTest++/src/Posix/TimeHelpers.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/testing/UnitTest++/src/Posix/TimeHelpers.h b/src/testing/UnitTest++/src/Posix/TimeHelpers.h
new file mode 100644
index 0000000..fdc8428
--- /dev/null
+++ b/src/testing/UnitTest++/src/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();
+ int GetTimeInMs() const;
+
+private:
+ struct timeval m_startTime;
+};
+
+
+namespace TimeHelpers
+{
+void SleepMs (int ms);
+}
+
+
+}
+
+#endif