X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Ftiming.c;h=df43a4122b2e37e28d15714f30049d1151bddde9;hp=352c03deb89c169105ab4ae415fef5d4999bf138;hb=236966a07ceb8e28649470995f88251c37423715;hpb=43a9d38d20c1b1bcd1a03b2445a501d27526bd35 diff --git a/src/timing.c b/src/timing.c index 352c03d..df43a41 100644 --- a/src/timing.c +++ b/src/timing.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2011 Index Data + * Copyright (C) Index Data * See the file LICENSE for details. */ @@ -107,7 +107,7 @@ void yaz_timing_stop(yaz_timing_t t) { #if HAVE_SYS_TIMES_H times(&t->tms2); - + t->user_sec = (double) (t->tms2.tms_utime - t->tms1.tms_utime)/100; t->sys_sec = (double) (t->tms2.tms_stime - t->tms1.tms_stime)/100; #endif @@ -115,7 +115,7 @@ void yaz_timing_stop(yaz_timing_t t) gettimeofday(&t->end_time, 0); t->real_sec = ((t->end_time.tv_sec - t->start_time.tv_sec) * 1000000.0 + t->end_time.tv_usec - t->start_time.tv_usec) / 1000000; -#else +#else #ifdef WIN32 get_date_as_largeinteger(&t->end_time); t->real_sec = (t->end_time - t->start_time) / 10000000.0;