40 #if defined( MBG_TGT_POSIX ) 41 long dt = ( t2->
secs - t1->
secs ) * 1000;
42 #if defined ( MBG_TGT_LINUX ) && defined( MBG_TGT_KERNEL ) 44 do_div( tmp64, 1000000 );
50 #elif defined( MBG_TGT_WIN32 ) 51 return (
long) ( ( t2->QuadPart - t1->QuadPart ) /
HNS_PER_MS );
A timestamp with nanosecond resolution, but 64 bit size.
static __mbg_inline long mbg_delta_sys_time_ms(const MBG_SYS_TIME *t2, const MBG_SYS_TIME *t1)
Compute delta between two MBG_SYS_TIME times, in milliseconds.
int64_t nano_secs
[nanoseconds]
int64_t secs
[seconds], usually since 1970-01-01 00:00:00