00001 #ifndef __StopWatch__ 00002 #define __StopWatch__ 00003 00004 class StopWatch { 00005 public: 00006 StopWatch(); 00007 00008 void start(); 00009 void stop(); 00010 void resume(); 00011 00012 double getElapsedTime(); 00013 00014 protected: 00015 __int64 _frequency; 00016 __int64 _counter; 00017 00018 bool _active; 00019 double _elapsedTime; 00020 }; 00021 00022 #endif