git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ctdb-tools: Move definition of timeval_delta() to tools/ctdb.c
[sfrench/samba-autobuild/.git]
/
ctdb
/
lib
/
util
/
util_time.c
diff --git
a/ctdb/lib/util/util_time.c
b/ctdb/lib/util/util_time.c
index be14f26458abe7c19561063ba90280561de79a46..13ddfdb2b6e5b0094bf5bc93c725f81299d48339 100644
(file)
--- a/
ctdb/lib/util/util_time.c
+++ b/
ctdb/lib/util/util_time.c
@@
-44,12
+44,6
@@
double timeval_elapsed(struct timeval *tv)
(tv2.tv_usec - tv->tv_usec)*1.0e-6;
}
-double timeval_delta(struct timeval *tv2, struct timeval *tv)
-{
- return (tv2->tv_sec - tv->tv_sec) +
- (tv2->tv_usec - tv->tv_usec)*1.0e-6;
-}
-
/**
return a timeval struct with the given elements
*/