mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-17 06:06:00 -06:00
28 lines
334 B
C++
28 lines
334 B
C++
#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
|