X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fstrset%2Ftools%2Fspeed.c;h=325b3a888d63e9787c99dd3103b76cb5936ec372;hb=ad2ce76c10f808283ea7cf25cd8e76a15710c4f3;hp=972d52f760ff6995556623b38c474d715a7871c5;hpb=f3eecc2c76e7ebbd0024b1528326bbb18a7d7742;p=ccan diff --git a/ccan/strset/tools/speed.c b/ccan/strset/tools/speed.c index 972d52f7..325b3a88 100644 --- a/ccan/strset/tools/speed.c +++ b/ccan/strset/tools/speed.c @@ -32,17 +32,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; struct strset set; char **words, **misswords;