• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3  * Copyright (c) 2019, Linux Test Project
4  * Copyright (c) 2013 Cyril Hrubis <chrubis@suse.cz>
5  */
6 
7 #include <time.h>
8 
9 #ifndef POSIX_CLOCKS_H__
10 #define POSIX_CLOCKS_H__
11 
12 #define MAX_CLOCKS 16
13 
14 #ifndef CLOCK_MONOTONIC_RAW
15 # define CLOCK_MONOTONIC_RAW 4
16 #endif
17 
18 #ifndef CLOCK_REALTIME_COARSE
19 # define CLOCK_REALTIME_COARSE 5
20 #endif
21 
22 #ifndef CLOCK_MONOTONIC_COARSE
23 # define CLOCK_MONOTONIC_COARSE 6
24 #endif
25 
26 #ifndef CLOCK_BOOTTIME
27 # define CLOCK_BOOTTIME 7
28 #endif
29 
30 #ifndef CLOCK_REALTIME_ALARM
31 # define CLOCK_REALTIME_ALARM 8
32 #endif
33 
34 #ifndef CLOCK_BOOTTIME_ALARM
35 # define CLOCK_BOOTTIME_ALARM 9
36 #endif
37 
38 #ifndef CLOCK_TAI
39 #define CLOCK_TAI 11
40 #endif
41 
42 #endif /* POSIX_CLOCKS_H__ */
43