29static int io_clock_realtime_getres(
31static int io_clock_realtime_gettime(
33static int io_clock_realtime_settime(
38 &io_clock_realtime_getres,
39 &io_clock_realtime_gettime,
40 &io_clock_realtime_settime
50static int io_clock_monotonic_getres(
52static int io_clock_monotonic_gettime(
54static int io_clock_monotonic_settime(
59 &io_clock_monotonic_getres,
60 &io_clock_monotonic_gettime,
61 &io_clock_monotonic_settime
66 &io_clock_monotonic_vtbl
78 return clock_getres(CLOCK_REALTIME, res);
86 return clock_gettime(CLOCK_REALTIME, tp);
94 return clock_settime(CLOCK_REALTIME, tp);
106 return clock_getres(CLOCK_MONOTONIC, res);
114 return clock_gettime(CLOCK_MONOTONIC, tp);
122 return clock_settime(CLOCK_MONOTONIC, tp);
const struct io_clock_vtbl *const io_clock_t
An abstract clock.
A time type with nanosecond resolution.
This header file is part of the I/O library; it contains the standard system clock definitions.