Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008 #ifndef __RGG_CLOCK_H__
00009 #define __RGG_CLOCK_H__
00010
00011 #include <time.h>
00012 #include <string>
00013
00014
00015
00016
00017
00018 class CClock
00019 {
00020 public:
00021 CClock ();
00022 CClock (const CClock&);
00023 ~CClock();
00024
00025
00026 double DiffTime (const CClock&) const;
00027 double DiffTime () const;
00028 void GetDateTime (std::string& szDateTime) const;
00029
00030
00031 void MarkTime ();
00032
00033
00034 long GetMarkedTime () const;
00035
00036 private:
00037 time_t m_Time;
00038 };
00039
00040 #endif