From a2e8997b9feb9e74346ed0770f44442074aca0ed Mon Sep 17 00:00:00 2001 From: Andrew Hsieh Date: Thu, 14 Nov 2013 12:14:12 +0800 Subject: [PATCH] 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 --- ndk/platforms/android-3/include/time.h | 8 ++++++-- ndk/platforms/android-8/include/time.h | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/ndk/platforms/android-3/include/time.h b/ndk/platforms/android-3/include/time.h index 40fd5c9ed..87f5314bf 100644 --- a/ndk/platforms/android-3/include/time.h +++ b/ndk/platforms/android-3/include/time.h @@ -105,8 +105,12 @@ extern int clock_nanosleep(clockid_t, int, const struct timespec *, struct times #define CLOCK_MONOTONIC 1 #define CLOCK_PROCESS_CPUTIME_ID 2 #define CLOCK_THREAD_CPUTIME_ID 3 -#define CLOCK_REALTIME_HR 4 -#define CLOCK_MONOTONIC_HR 5 +#define CLOCK_MONOTONIC_RAW 4 +#define CLOCK_REALTIME_COARSE 5 +#define CLOCK_MONOTONIC_COARSE 6 +#define CLOCK_BOOTTIME 7 +#define CLOCK_REALTIME_ALARM 8 +#define CLOCK_BOOTTIME_ALARM 9 extern int timer_create(int, struct sigevent*, timer_t*); extern int timer_delete(timer_t); diff --git a/ndk/platforms/android-8/include/time.h b/ndk/platforms/android-8/include/time.h index 0ace602c2..38e89fd52 100644 --- a/ndk/platforms/android-8/include/time.h +++ b/ndk/platforms/android-8/include/time.h @@ -103,8 +103,12 @@ extern int clock_nanosleep(clockid_t, int, const struct timespec *, struct times #define CLOCK_MONOTONIC 1 #define CLOCK_PROCESS_CPUTIME_ID 2 #define CLOCK_THREAD_CPUTIME_ID 3 -#define CLOCK_REALTIME_HR 4 -#define CLOCK_MONOTONIC_HR 5 +#define CLOCK_MONOTONIC_RAW 4 +#define CLOCK_REALTIME_COARSE 5 +#define CLOCK_MONOTONIC_COARSE 6 +#define CLOCK_BOOTTIME 7 +#define CLOCK_REALTIME_ALARM 8 +#define CLOCK_BOOTTIME_ALARM 9 extern int timer_create(int, struct sigevent*, timer_t*); extern int timer_delete(timer_t);