X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=isamb%2Fbenchisamb.c;h=e9aaba7f273b6f6dde9d0e28bbfa4b33527a4d17;hb=3fe5d30485d3fc95b24ee5e7dc75971447ecb5aa;hp=6d5391e2ce4f61e44514aeb8d81d901ebca2cf80;hpb=654dbcc899c70a1cb26d215796c6e3b8c4a46a58;p=idzebra-moved-to-github.git diff --git a/isamb/benchisamb.c b/isamb/benchisamb.c index 6d5391e..e9aaba7 100644 --- a/isamb/benchisamb.c +++ b/isamb/benchisamb.c @@ -1,4 +1,4 @@ -/* $Id: benchisamb.c,v 1.3 2006-12-10 20:59:52 adam Exp $ +/* $Id: benchisamb.c,v 1.4 2006-12-11 10:02:14 adam Exp $ Copyright (C) 1995-2006 Index Data ApS @@ -134,15 +134,9 @@ void bench_insert(ISAMB isb, int number_of_trees, for (round = 0; round < number_of_rounds; round++) { -#if HAVE_SYS_TIMES_H -#if HAVE_SYS_TIME_H - struct tms tms1, tms2; - struct timeval start_time, end_time; - double usec; - times(&tms1); - gettimeofday(&start_time, 0); -#endif -#endif + zebra_timing_t t = zebra_timing_create(); + + zebra_timing_start(t); for (i = 0; i