All Classes Namespaces Files Functions Variables Enumerations Enumerator
libs/system/StopWatch.h
Go to the documentation of this file.
00001 #ifndef QRK_STOP_WATCH_H
00002 #define QRK_STOP_WATCH_H
00003 
00013 #include <memory>
00014 
00015 
00016 namespace qrk
00017 {
00019     class StopWatch
00020     {
00021     public:
00022         StopWatch(void);
00023         ~StopWatch(void);
00024 
00025 
00027         void start(void);
00028 
00029 
00035         void stop(void);
00036 
00037 
00041         void pause(void);
00042 
00043 
00047         void resume(void);
00048 
00049 
00055         int ticks(void);
00056 
00057 
00064         bool isPause(void);
00065 
00066 
00067         void setSpeedRatio(double ratio);
00068 
00069     private:
00070         StopWatch(const StopWatch& rhs);
00071         StopWatch& operator = (const StopWatch& rhs);
00072 
00073         struct pImpl;
00074         std::auto_ptr<pImpl> pimpl;
00075     };
00076 }
00077 
00078 #endif /* !QRK_STOP_WATCH_H */