Skip to content

Commit 69139a5

Browse files
Andrew HsiehGerrit Code Review
authored andcommitted
Merge "Added missing clock_settime()/clock_nanosleep() in time.h API>=8"
2 parents aaebba0 + cd3fe9b commit 69139a5

File tree

1 file changed

+4
-2
lines changed
  • ndk/platforms/android-8/include

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,10 @@ extern long int timezone;
9494
extern clock_t clock(void);
9595

9696
/* BIONIC: extra linux clock goodies */
97-
extern int clock_getres(int, struct timespec *);
98-
extern int clock_gettime(int, struct timespec *);
97+
extern int clock_getres(clockid_t, struct timespec *);
98+
extern int clock_gettime(clockid_t, struct timespec *);
99+
extern int clock_settime(clockid_t, const struct timespec *);
100+
extern int clock_nanosleep(clockid_t, int, const struct timespec *, struct timespec *);
99101

100102
#define CLOCK_REALTIME 0
101103
#define CLOCK_MONOTONIC 1

0 commit comments

Comments
 (0)