summary refs log tree commit diff
path: root/rt/tst-timer5.c
blob: 2683021edaa0bb8835b813bd2e83403759e1ae9e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* Timer test using the monotonic clock.  */

#include <time.h>
#include <unistd.h>

#if defined CLOCK_MONOTONIC && defined _POSIX_MONOTONIC_CLOCK
# define TEST_CLOCK	CLOCK_MONOTONIC
# define TEST_CLOCK_MISSING(clock) \
  (sysconf (_SC_MONOTONIC_CLOCK) > 0 ? NULL : #clock)
# include "tst-timer4.c"
#else
# define TEST_FUNCTION	0
# include "../test-skeleton.c"
#endif