1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

s3: add TspecDiff macro

This commit is contained in:
Björn Jacke 2010-08-30 15:30:16 +02:00
parent 4b09919f70
commit 6e9747c1ce

View File

@ -153,6 +153,15 @@ values
(((tvalnew)->tv_sec - (tvalold)->tv_sec)*1000 + \
((int)(tvalnew)->tv_usec - (int)(tvalold)->tv_usec)/1000)
/*******************************************************************
find the difference in milliseconds between two struct timespec
values
********************************************************************/
#define TspecDiff(tvalold,tvalnew) \
(((tvalnew)->tv_sec - (tvalold)->tv_sec)*1000 + \
((int)(tvalnew)->tv_nsec - (int)(tvalold)->tv_nsec)/1000000)
/****************************************************************************
true if two IPv4 addresses are equal
****************************************************************************/