MeshKit  1.0
clock.hpp
Go to the documentation of this file.
00001 /*********************************************
00002 Dec,09
00003 Reactor Geometry Generator
00004 Argonne National Laboratory
00005 
00006 CClock class definition.
00007 *********************************************/
00008 #ifndef __RGG_CLOCK_H__
00009 #define __RGG_CLOCK_H__
00010 
00011 #include <time.h>
00012 #include <string>
00013 
00014 // -------------------------------------------
00015 // Note all elapsed times are WALL CLOCK times
00016 // -------------------------------------------
00017 
00018 class CClock
00019 {
00020 public:
00021   CClock ();                            // ctor
00022   CClock (const CClock&); // overloaded ctor
00023   ~CClock();                            // dtor
00024         
00025   // helper functions
00026   double DiffTime (const CClock&) const;
00027   double DiffTime () const;
00028   void GetDateTime (std::string& szDateTime) const;
00029         
00030   // modifier function
00031   void MarkTime ();
00032 
00033   // accessor function
00034   long GetMarkedTime () const;  
00035 
00036 private:
00037   time_t m_Time; // stores marked time since UTC 1/1/70
00038 };
00039 
00040 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines