1 // Copyright 2023 The Android Open Source Project
2 //
3 // This software is licensed under the terms of the GNU General Public
4 // License version 2, as published by the Free Software Foundation, and
5 // may be copied, distributed, and modified under those terms.
6 //
7 // This program is distributed in the hope that it will be useful,
8 // but WITHOUT ANY WARRANTY; without even the implied warranty of
9 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10 // GNU General Public License for more details.
11 #ifndef _AEMU_SYS_TIME_H_
12 #define _AEMU_SYS_TIME_H_
13 
14 #include <stdint.h>
15 #include <time.h>
16 #include <WinSock2.h>
17 struct timezone {
18     int tz_minuteswest; /* of Greenwich */
19     int tz_dsttime;     /* type of dst correction to apply */
20 };
21 
22 
23 typedef struct FileTime {
24   uint32_t dwLowDateTime;
25   uint32_t dwHighDateTime;
26 } FileTime;
27 
28 typedef  void (*SystemTime)(FileTime*);
29 
30 
31 extern int gettimeofday(struct timeval* tp, struct timezone* tz);
32 #endif	/* Not _AEMU_SYS_TIME_H_ */