diff options
author | Andrew Hsieh <andrewhsieh@google.com> | 2013-11-14 11:57:04 +0800 |
---|---|---|
committer | Andrew Hsieh <andrewhsieh@google.com> | 2013-11-14 11:57:04 +0800 |
commit | cd3fe9b4b23f8241ceb02a8d795194af00f50a61 (patch) | |
tree | 69f738fae4ed8823ca882babfd51217a07dfdb33 /ndk/platforms/android-8/include | |
parent | aaebba0e9e564c8b50286bfef6e2ee3e8f2535be (diff) | |
download | android_development-cd3fe9b4b23f8241ceb02a8d795194af00f50a61.tar.gz android_development-cd3fe9b4b23f8241ceb02a8d795194af00f50a61.tar.bz2 android_development-cd3fe9b4b23f8241ceb02a8d795194af00f50a61.zip |
Added missing clock_settime()/clock_nanosleep() in time.h API>=8
See patch for API < 8 at 7761beeb56c857150052b0576e639375f4b1a55c.
Change-Id: I906172a34645e2659a5b9f8acb2652a4b4eb857d
Diffstat (limited to 'ndk/platforms/android-8/include')
-rw-r--r-- | ndk/platforms/android-8/include/time.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ndk/platforms/android-8/include/time.h b/ndk/platforms/android-8/include/time.h index e7ead0f61..0ace602c2 100644 --- a/ndk/platforms/android-8/include/time.h +++ b/ndk/platforms/android-8/include/time.h @@ -94,8 +94,10 @@ extern long int timezone; extern clock_t clock(void); /* BIONIC: extra linux clock goodies */ -extern int clock_getres(int, struct timespec *); -extern int clock_gettime(int, struct timespec *); +extern int clock_getres(clockid_t, struct timespec *); +extern int clock_gettime(clockid_t, struct timespec *); +extern int clock_settime(clockid_t, const struct timespec *); +extern int clock_nanosleep(clockid_t, int, const struct timespec *, struct timespec *); #define CLOCK_REALTIME 0 #define CLOCK_MONOTONIC 1 |