- Main Page
- Related Pages
- Classes
- Files

- File List
- File Members

# TimeHelpers.h

    00001 #ifndef UNITTEST_TIMEHELPERS_H
    00002 #define UNITTEST_TIMEHELPERS_H
    00003
    00004 #include <sys/time.h>
    00005
    00006 namespace UnitTest {
    00007
    00008 class Timer
    00009 {
    00010 public:
    00011     Timer();
    00012     void Start();
    00013     double GetTimeInMs() const;
    00014
    00015 private:
    00016     struct timeval m_startTime;
    00017 };
    00018
    00019
    00020 namespace TimeHelpers
    00021 {
    00022 void SleepMs (int ms);
    00023 }
    00024
    00025
    00026 }
    00027
    00028 #endif