Use yaz_gettimeofday
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 19 May 2010 09:23:24 +0000 (11:23 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 19 May 2010 09:23:24 +0000 (11:23 +0200)
src/session.c

index f2acbaa..0ca3523 100644 (file)
@@ -52,6 +52,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 #include <yaz/querytowrbuf.h>
 #include <yaz/oid_db.h>
 #include <yaz/snprintf.h>
+#include <yaz/gettimeofday.h>
 
 #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;