36 lines
656 B
C
36 lines
656 B
C
/*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
* Copyright (C) 2018 Philippe Gerum <rpm@xenomai.org>
|
|
*/
|
|
|
|
#ifndef _EVL_CLOCK_H
|
|
#define _EVL_CLOCK_H
|
|
|
|
#include <time.h>
|
|
#include <errno.h>
|
|
#include <sys/timex.h>
|
|
#include <sys/ioctl.h>
|
|
#include <evl/syscall.h>
|
|
#include <uapi/evl/clock.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
int evl_read_clock(int clockfd, struct timespec *tp);
|
|
|
|
int evl_set_clock(int clockfd, const struct timespec *tp);
|
|
|
|
int evl_get_clock_resolution(int clockfd, struct timespec *tp);
|
|
|
|
int evl_sleep_until(int clockfd, const struct timespec *timeout);
|
|
|
|
int evl_usleep(useconds_t usecs);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* _EVL_CLOCK_H */
|