mstime.h
Go to the documentation of this file.00001
00006 #ifndef CTL_MSTIME_H
00007 #define CTL_MSTIME_H
00008
00009 ppCPP(extern "C" {)
00010
00011
00012 typedef int64 mstime;
00013 mstime ctl_mstime(void);
00014 int ctl_mstime_print_seconds( char* buff, size_t bufflen, mstime ms );
00015 bool ctl_mstime_local( struct tm* ptm, mstime ms );
00016 bool ctl_mstime_gm( struct tm* ptm, mstime ms );
00017 int ctl_mstime_print_time_local( char* buff, size_t bufflen, mstime ms );
00018 int ctl_mstime_print_time_gm( char* buff, size_t bufflen, mstime ms );
00019
00023 #define ppmsTod( mstime ) ((mstime)/1000.0)
00024
00028 #define ppdToms( fvalue ) ((mstime)((fvalue)*1000))
00029
00030
00031
00032
00033
00034 typedef int64 ustime;
00035 ustime ctl_ustime(void);
00036 int ctl_ustime_print_seconds( char* buff, size_t bufflen, ustime us );
00037
00038 ppCPP(})
00039
00040 #endif