00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef _rlog_time_incl
00020 #define _rlog_time_incl
00021
00022 #include <rlog/common.h>
00023
00028 #ifdef _WIN32
00029
00030 typedef __int64 rlog_time_interval;
00031 typedef LARGE_INTEGER rlog_time;
00032
00033 void sleep(int seconds);
00034 #else
00035
00036 #include <stdint.h>
00037 #include <sys/time.h>
00038 #include <unistd.h>
00039
00040 typedef timeval rlog_time;
00041 typedef int64_t rlog_time_interval;
00042
00043 #endif
00044
00045 void rlog_get_time(rlog_time *pt);
00046 rlog_time_interval rlog_time_diff( const rlog_time &end, const rlog_time &start );
00047
00048 const char *rlog_time_unit();
00049
00050 #endif // _rlog_time_incl