21 lines
562 B
C
21 lines
562 B
C
#ifndef SYS_HORIZON___TIME_H_
|
|
#define SYS_HORIZON___TIME_H_
|
|
|
|
#include <sys/types.h>
|
|
#include <magenta/clock.h>
|
|
|
|
#define __SYS_CLOCKS_PER_SEC 1000000000
|
|
#define __SYS_CLOCK_REALTIME MX_CLOCK_REALTIME
|
|
#define __SYS_CLOCK_MONOTONIC MX_CLOCK_MONOTONIC
|
|
|
|
struct timespec;
|
|
|
|
extern clock_t __sys_clock(void);
|
|
extern time_t __sys_time(void);
|
|
|
|
extern int __sys_clock_getres(clockid_t clk_id, struct timespec *res);
|
|
extern int __sys_clock_gettime(clockid_t clk_id, struct timespec *tp);
|
|
extern int __sys_clock_settime(clockid_t clk_id, const struct timespec *tp);
|
|
|
|
#endif
|