Skip to content

Commit faab12a

Browse files
Andrew HsiehGerrit Code Review
authored andcommitted
Merge "Update time.h for CLOCK_BOOTTIME, etc"
2 parents 69139a5 + a2e8997 commit faab12a

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

ndk/platforms/android-3/include/time.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,12 @@ extern int clock_nanosleep(clockid_t, int, const struct timespec *, struct times
105105
#define CLOCK_MONOTONIC 1
106106
#define CLOCK_PROCESS_CPUTIME_ID 2
107107
#define CLOCK_THREAD_CPUTIME_ID 3
108-
#define CLOCK_REALTIME_HR 4
109-
#define CLOCK_MONOTONIC_HR 5
108+
#define CLOCK_MONOTONIC_RAW 4
109+
#define CLOCK_REALTIME_COARSE 5
110+
#define CLOCK_MONOTONIC_COARSE 6
111+
#define CLOCK_BOOTTIME 7
112+
#define CLOCK_REALTIME_ALARM 8
113+
#define CLOCK_BOOTTIME_ALARM 9
110114

111115
extern int timer_create(int, struct sigevent*, timer_t*);
112116
extern int timer_delete(timer_t);

ndk/platforms/android-8/include/time.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,12 @@ extern int clock_nanosleep(clockid_t, int, const struct timespec *, struct times
103103
#define CLOCK_MONOTONIC 1
104104
#define CLOCK_PROCESS_CPUTIME_ID 2
105105
#define CLOCK_THREAD_CPUTIME_ID 3
106-
#define CLOCK_REALTIME_HR 4
107-
#define CLOCK_MONOTONIC_HR 5
106+
#define CLOCK_MONOTONIC_RAW 4
107+
#define CLOCK_REALTIME_COARSE 5
108+
#define CLOCK_MONOTONIC_COARSE 6
109+
#define CLOCK_BOOTTIME 7
110+
#define CLOCK_REALTIME_ALARM 8
111+
#define CLOCK_BOOTTIME_ALARM 9
108112

109113
extern int timer_create(int, struct sigevent*, timer_t*);
110114
extern int timer_delete(timer_t);

0 commit comments

Comments
 (0)