X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fhtable%2Ftools%2Fhsearchspeed.c;h=88280114f3842f432170782b49b801146c035495;hb=5ff76d983c62c8fc489672a1f89927ee3ba58e5d;hp=6a8c62fc10676e5ddfb35482599ec6541bb4e2ba;hpb=a2cb9a4f7f46effe1fdca5c05c3e0dfb6b3cc02a;p=ccan diff --git a/ccan/htable/tools/hsearchspeed.c b/ccan/htable/tools/hsearchspeed.c index 6a8c62fc..88280114 100644 --- a/ccan/htable/tools/hsearchspeed.c +++ b/ccan/htable/tools/hsearchspeed.c @@ -15,17 +15,17 @@ #include /* Nanoseconds per operation */ -static size_t normalize(const struct timespec *start, - const struct timespec *stop, +static size_t normalize(const struct timeabs *start, + const struct timeabs *stop, unsigned int num) { - return time_to_nsec(time_divide(time_sub(*stop, *start), num)); + return time_to_nsec(time_divide(time_between(*stop, *start), num)); } int main(int argc, char *argv[]) { size_t i, j, num; - struct timespec start, stop; + struct timeabs start, stop; char **w; ENTRY *words, *misswords;