NVidia Gameworks
  • Main Page
  • Classes
  • Files
  • File List
  • File Members

NvStopWatch.h

Go to the documentation of this file.
00001 // TAGRELEASE: PUBLIC
00002  
00003 /* Stopwatch Timing Functions */
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
Generated on Sat Mar 8 14:58:35 2014 for NVIDIA GameWorks OpenGL App Framework and Libraries by Doxygen
©2014 NVIDIA Corporation.