PageRenderTime 14ms CodeModel.GetById 12ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 0ms

/extlibs/UnitTest++/source/Posix/TimeHelpers.h

https://bitbucket.org/hugoruscitti/pilascpp
C++ Header | 28 lines | 19 code | 9 blank | 0 comment | 0 complexity | 193ebb1b29949c31f3980c360d77c242 MD5 | raw file
 1#ifndef UNITTEST_TIMEHELPERS_H
 2#define UNITTEST_TIMEHELPERS_H
 3
 4#include <sys/time.h>
 5
 6namespace UnitTest {
 7
 8class Timer
 9{
10public:
11    Timer();
12    void Start();
13    int GetTimeInMs() const;    
14
15private:
16    struct timeval m_startTime;    
17};
18
19
20namespace TimeHelpers
21{
22void SleepMs (int ms);
23}
24
25
26}
27
28#endif