X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fhtable%2Ftools%2Fhsearchspeed.c;h=88280114f3842f432170782b49b801146c035495;hp=6a8c62fc10676e5ddfb35482599ec6541bb4e2ba;hb=d9b63547c108a316a22c605503b100e58f2877ad;hpb=95ff2139520130dd98a0503e3c4f441c69a68f5a 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;