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