/* This is a simple little timer class. You may want to modify it for your application. start() Starts the timer; i.e. it records the current time. end(float numSeconds) Enters a loop until numSeconds have passed since the timer was last set (or created). If more than numSeconds have passed when end() is called, it returns immediately. */ #ifndef MYTIMER_H #define MYTIMER_H #include class cTimer { public: cTimer(void); virtual ~cTimer(void) {}; void startTimer(void); // set timer void endTimer(float seconds); // stop timer "seconds" after // it is set private: clock_t setTime; }; #endif