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 }
00079
00080 }
00081
00082 #endif // #ifndef _DLR_PORTABILITY_TIMEUTILITIES_H_