1 /* This file is part of the YAZ toolkit.
2 * Copyright (C) 1995-2010 Index Data
3 * See the file LICENSE for details.
8 * \brief Implements wrapper for gettimeofday
21 #include <sys/timeb.h>
24 #include <yaz/gettimeofday.h>
26 int yaz_gettimeofday(struct timeval *tval)
31 tval->tv_sec = timeb.time;
32 tval->tv_usec = timeb.millitm * 1000;
35 return gettimeofday(tval, 0);
42 * c-file-style: "Stroustrup"
43 * indent-tabs-mode: nil
45 * vim: shiftwidth=4 tabstop=8 expandtab