From: Adam Dickmeiss Date: Wed, 19 May 2010 09:23:24 +0000 (+0200) Subject: Use yaz_gettimeofday X-Git-Tag: v1.4.1~21 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=1b7db6048c094ee48951ae9a354dcfd6209425ad;p=pazpar2-moved-to-github.git Use yaz_gettimeofday --- diff --git a/src/session.c b/src/session.c index f2acbaa..0ca3523 100644 --- a/src/session.c +++ b/src/session.c @@ -52,6 +52,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include #include #include +#include #define USE_TIMING 0 #if USE_TIMING @@ -537,7 +538,7 @@ enum pazpar2_error_code search(struct session *se, } se->reclist = reclist_create(se->nmem); - gettimeofday(&tval, 0); + yaz_gettimeofday(&tval); tval.tv_sec += 5;