Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008 #ifndef CLOCK_H_
00009 #define CLOCK_H_
00010
00011 #include <sys/types.h>
00012
00013 namespace dtn
00014 {
00015 namespace utils
00016 {
00017 class Clock
00018 {
00019 public:
00020 Clock();
00021 virtual ~Clock();
00022
00023 static size_t getTime();
00024
00025 static bool isExpired(size_t timestamp, size_t lifetime = 0);
00026
00027 static size_t getExpireTime(size_t timestamp, size_t lifetime);
00028
00029 static int timezone;
00030
00031 static u_int32_t TIMEVAL_CONVERSION;
00032
00038 static float quality;
00039 };
00040 }
00041 }
00042
00043 #endif