4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-16 06:19:24 +08:00
bernard.xiong@gmail.com 72630eae88 add clock and mqueue interface.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1083 bbd45198-f89e-11dd-88c7-29a3b14d5316
2010-11-21 23:56:16 +00:00

28 lines
478 B
C

#include <rtthread.h>
#include "pthread_internal.h"
#include <time.h>
int clock_getres(clockid_t clock_id, struct timespec *res)
{
if ((clock_id != CLOCK_REALTIME) || (res == RT_NULL))
{
rt_set_errno(EINVAL);
return -1;
}
res->tv_sec = 0;
res->tv_nsec = NSEC_PER_TICK;
return 0;
}
int clock_gettime(clockid_t clock_id, struct timespec *tp)
{
return 0;
}
int clock_settime(clockid_t clock_id, const struct timespec *tp)
{
return 0;
}