diff options
author | Jeremy Allison <jra@samba.org> | 2004-06-08 16:14:31 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:51:54 -0500 |
commit | 894cc6d16296b934c112786eec896846156aee5d (patch) | |
tree | 259f12334a01617eb0a307fdab0a57bf3911579d /source/lib/time.c | |
parent | e65564ab4aa1240e84b8d272510aa770cad0ed0e (diff) | |
download | samba-894cc6d16296b934c112786eec896846156aee5d.tar.gz samba-894cc6d16296b934c112786eec896846156aee5d.tar.xz samba-894cc6d16296b934c112786eec896846156aee5d.zip |
r1085: Now it's had some proper user testing, merge in the deferred open fix. I'm
still doing more testing, but it fixes a behaviour that we've been wrong
on ever since the start of Samba.
Jeremy.
Diffstat (limited to 'source/lib/time.c')
-rw-r--r-- | source/lib/time.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/lib/time.c b/source/lib/time.c index faca2cba879..e63e0b29659 100644 --- a/source/lib/time.c +++ b/source/lib/time.c @@ -754,3 +754,9 @@ BOOL nt_time_is_zero(NTTIME *nt) return True; return False; } + +SMB_BIG_INT usec_time_diff(struct timeval *larget, struct timeval *smallt) +{ + SMB_BIG_INT sec_diff = larget->tv_sec - smallt->tv_sec; + return (sec_diff * 1000000) + (SMB_BIG_INT)(larget->tv_usec - smallt->tv_usec); +} |