Skip to content

Commit a2e8997

Browse files
author
Andrew Hsieh
committed
Update time.h for CLOCK_BOOTTIME, etc
Add CLOCK_MONOTONIC_RAW, CLOCK_REALTIME_COARSE, CLOCK_MONOTONIC_COARSE, CLOCK_BOOTTIME, CLOCK_REALTIME_ALARM, and CLOCK_BOOTTIME_ALARM Remove obsolete CLOCK_REALTIME_HR and CLOCK_MONOTONIC_HR See: 0351955a686fe4e0bf9f30780f78ff0e2402a6b0 b928bda83d4413b703329f607e2706602f15293f 60e5144ca312b210b54ac8e6966108da0c97ff80 Change-Id: Ibc9e297ab71f3dc16eec0746f835f89e554fd68b
1 parent cd3fe9b commit a2e8997

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)