1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-07 23:29:39 +00:00
cc65/libsrc/rp6502/settime.c

11 lines
255 B
C
Raw Normal View History

2023-11-17 02:46:16 +00:00
#include <rp6502.h>
#include <time.h>
2023-11-17 19:08:51 +00:00
int clock_settime (clockid_t clock_id, const struct timespec* tp)
2023-11-17 02:46:16 +00:00
{
2023-11-17 19:08:51 +00:00
ria_set_ax (clock_id);
ria_push_long (tp->tv_nsec);
ria_push_long (tp->tv_sec);
return ria_call_int_errno (RIA_OP_CLOCK_SETTIME);
2023-11-17 02:46:16 +00:00
}