- 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 public:
    00010         Timer();
    00011         void Start();
    00012         double GetTimeInMs() const;
    00013
    00014 private:
    00015         struct timeval m_startTime;
    00016 };
    00017
    00018
    00019 namespace TimeHelpers {
    00020 void SleepMs ( int ms );
    00021 }
    00022
    00023
    00024 }
    00025
    00026 #endif