Annotation of embedaddon/ntp/ports/winnt/libntp/util_clockstuff.c, revision 1.1.1.1

1.1       misho       1: #ifdef HAVE_CONFIG_H
                      2: #include "config.h"
                      3: #endif
                      4: 
                      5: #include "ntp_syslog.h"
                      6: #include "ntp_stdlib.h"
                      7: #include "clockstuff.h"
                      8: 
                      9: int
                     10: gettimeofday(
                     11:        struct timeval *tv,
                     12:        int ignored
                     13:        )
                     14: {
                     15:        struct timespec ts;
                     16: 
                     17:        UNUSED_ARG(ignored);
                     18: 
                     19:        getclock(TIMEOFDAY, &ts);
                     20: 
                     21:        tv->tv_sec = ts.tv_sec;
                     22:        tv->tv_usec = ts.tv_nsec / 10;
                     23: 
                     24:        return 0;
                     25: }

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>