mame/3rdparty/unittest-cpp/UnitTest++/Posix/TimeHelpers.h
2015-05-27 15:00:06 +02:00

29 lines
309 B
C++

#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