[libc] revert back difftime
This commit is contained in:
parent
4f342456b3
commit
c8c24ae7ab
|
@ -307,6 +307,14 @@ char* ctime(const time_t *tim_p)
|
||||||
}
|
}
|
||||||
RTM_EXPORT(ctime);
|
RTM_EXPORT(ctime);
|
||||||
|
|
||||||
|
double difftime(time_t time1, time_t time2)
|
||||||
|
{
|
||||||
|
return (double)(time1 - time2);
|
||||||
|
}
|
||||||
|
RTM_EXPORT(difftime);
|
||||||
|
|
||||||
|
RTM_EXPORT(strftime); /* inherent in the toolchain */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the current time.
|
* Returns the current time.
|
||||||
*
|
*
|
||||||
|
@ -486,10 +494,6 @@ int settimeofday(const struct timeval *tv, const struct timezone *tz)
|
||||||
}
|
}
|
||||||
RTM_EXPORT(settimeofday);
|
RTM_EXPORT(settimeofday);
|
||||||
|
|
||||||
/* inherent in the toolchain */
|
|
||||||
RTM_EXPORT(difftime);
|
|
||||||
RTM_EXPORT(strftime);
|
|
||||||
|
|
||||||
#ifdef RT_USING_POSIX_DELAY
|
#ifdef RT_USING_POSIX_DELAY
|
||||||
int nanosleep(const struct timespec *rqtp, struct timespec *rmtp)
|
int nanosleep(const struct timespec *rqtp, struct timespec *rmtp)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue