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 
12 
13 #ifndef _AEMU_TIME_H_
14 #define _AEMU_TIME_H_
15 
16 #include_next <time.h>
17 
18 #ifndef _AEMU_SYS_CDEFS_H_
19 #include <sys/cdefs.h>
20 #endif
21 
22 __BEGIN_DECLS
23 
24 #define 	CLOCK_MONOTONIC   1
25 typedef int clockid_t;
26 
27 int clock_gettime(clockid_t clk_id, struct timespec *tp);
28 int nanosleep(const struct timespec *rqtp, struct timespec *rmtp);
29 
30 __END_DECLS
31 
32 #endif	/* Not _AEMU_TIME_H_ */
33