mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-26 17:18:24 +00:00
[libc] Remove wrong include file in clock_time.c
This commit is contained in:
@@ -24,12 +24,11 @@
|
||||
*/
|
||||
|
||||
#include <rtthread.h>
|
||||
#include <rtdevice.h>
|
||||
#include <pthread.h>
|
||||
|
||||
#include "clock_time.h"
|
||||
|
||||
struct timeval _timevalue;
|
||||
static struct timeval _timevalue;
|
||||
int clock_time_system_init()
|
||||
{
|
||||
time_t time;
|
||||
@@ -142,7 +141,7 @@ int clock_gettime(clockid_t clockid, struct timespec *tp)
|
||||
tp->tv_nsec = (_timevalue.tv_usec + (tick % RT_TICK_PER_SECOND) * MICROSECOND_PER_TICK) * 1000;
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
#ifdef RT_USING_CPUTIME
|
||||
case CLOCK_CPUTIME_ID:
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user