etl/test/UnitTest++/Posix/TimeHelpers.h
2022-03-20 22:41:59 +00:00

29 lines
338 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