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:
parent
4b09919f70
commit
6e9747c1ce
@ -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
|
||||
****************************************************************************/
|
||||
|
Loading…
x
Reference in New Issue
Block a user