Files
bx/3rdparty/UnitTest++/src/Posix/TimeHelpers.h
2013-09-22 21:37:18 -07: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