BEEP-8 SDK 1.0.0
Loading...
Searching...
No Matches
syscall.h
1
28#pragma once
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
34#include <sys/types.h>
35
36#define CLOCK_REALTIME_COARSE CLOCK_REALTIME
37#define CLOCK_MONOTONIC (0x20)
38#define CLOCK_MONOTONIC_COARSE (CLOCK_MONOTONIC+1)
39#define CLOCK_MONOTONIC_RAW (CLOCK_MONOTONIC+2)
40#define CLOCK_BOOTTIME (CLOCK_MONOTONIC+3)
41#define CLOCK_PROCESS_CPUTIME_ID (0x30)
42#define CLOCK_THREAD_CPUTIME_ID (0x31)
43
55extern int clock_getres(clockid_t clk_id, struct timespec *res);
56
68extern int clock_gettime(clockid_t clk_id, struct timespec *tp);
69
81extern int clock_settime(clockid_t clk_id, const struct timespec *tp);
82
93extern int usleep(useconds_t useconds);
94
95#ifdef __cplusplus
96}
97#endif