00001
00002
00003
00004
00005 #ifndef STOPWATCH_H
00006 #define STOPWATCH_H
00007
00008 #include <NvFoundation.h>
00009
00012
00017 class NvStopWatch
00018 {
00019 public:
00021 NvStopWatch() { m_running = false; }
00023 virtual ~NvStopWatch() { }
00024
00026 virtual void start() = 0;
00027
00029 virtual void stop() = 0;
00030
00032 virtual void reset() = 0;
00033
00036 bool isRunning() { return m_running; }
00037
00043 virtual const float getTime() const = 0;
00044
00045 protected:
00046 bool m_running;
00047 };
00048
00049 #endif