timeUtilities.h

Go to the documentation of this file.
00001 
00015 #ifndef _DLR_PORTABILITY_TIMEUTILITIES_H_
00016 #define _DLR_PORTABILITY_TIMEUTILITIES_H_
00017 
00018 #include <string>
00019 
00020 namespace dlr {
00021 
00022   namespace portability {
00023 
00024     enum TimeZone {
00025       DLR_TZ_GMT,
00026       DLR_TZ_LOCAL
00027     };
00028     
00029     
00037     double
00038     getCurrentTime();
00039 
00040 
00049     std::string
00050     getISOTimeString(TimeZone tz = DLR_TZ_LOCAL);
00051 
00052     
00062     void
00063     portableSleep(double seconds);
00064 
00065 
00075     void
00076     preciseSleep(int milliseconds);
00077 
00078   } // namespace portability
00079 
00080 } // namespace dlr
00081 
00082 #endif // #ifndef _DLR_PORTABILITY_TIMEUTILITIES_H_

Generated on Wed Nov 25 00:03:49 2009 for dlrPortability Utility Library by  doxygen 1.5.8