aboutsummaryrefslogtreecommitdiff
path: root/ports/winnt/include/sys/time.h
blob: 5c76212f60fa7046ce3c83330a50669d4c2b5cd5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
 * ports/winnt/include/sys/time.h
 *
 * routines declared in Unix systems' sys/time.h
 */

#ifndef SYS_TIME_H
#define SYS_TIME_H

#include "ntp_types.h"
#include <time.h>
#include <sys/timeb.h>

#if defined(_MSC_VER) && _MSC_VER < 1900 
typedef struct timespec {
	time_t	tv_sec;
	long	tv_nsec;
} timespec_t;
#endif

#define TIMEOFDAY	0	/* getclock() clktyp arg */
extern int getclock(int, struct timespec *ts);
extern int gettimeofday(struct timeval *, void *);
extern int settimeofday(struct timeval *);
extern void init_win_precise_time(void);

#endif /* SYS_TIME_H */