1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-12 07:07:19 +00:00
cc65/libsrc/rp6502/getres.c

11 lines
262 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
extern int __clock_gettimespec (struct timespec* ts, unsigned char op);
2023-11-17 02:46:16 +00:00
2023-11-17 19:08:51 +00:00
int clock_getres (clockid_t clock_id, struct timespec* res)
2023-11-17 02:46:16 +00:00
{
2023-11-17 19:08:51 +00:00
ria_set_ax (clock_id);
return __clock_gettimespec (res, RIA_OP_CLOCK_GETRES);
2023-11-17 02:46:16 +00:00
}