File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
components/libc/compilers/common Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 1212 * 2021-02-08 Meco Man add settimeofday() stime()
1313 * 2021-02-10 Meco Man add ctime_r() and re-implement ctime()
1414 * 2021-02-11 Meco Man fix bug #3183 - align days[] and months[] to 4 bytes
15- * add difftime()
1615 * 2021-02-12 Meco Man add errno
1716 * 2012-12-08 Bernard <clock_time.c> fix the issue of _timevalue.tv_usec initialization,
1817 * which found by Rob <rdent@iinet.net.au>
@@ -177,12 +176,6 @@ char* ctime(const time_t *tim_p)
177176}
178177RTM_EXPORT (ctime );
179178
180- double difftime (time_t tim1 , time_t tim2 )
181- {
182- return (double )(tim1 - tim2 );
183- }
184- RTM_EXPORT (difftime );
185-
186179/**
187180 * Returns the current time.
188181 *
@@ -372,6 +365,10 @@ int settimeofday(const struct timeval *tv, const struct timezone *tz)
372365}
373366RTM_EXPORT (settimeofday );
374367
368+ /* inherent in the toolchain */
369+ RTM_EXPORT (difftime );
370+ RTM_EXPORT (strftime );
371+
375372#ifdef RT_USING_POSIX
376373static struct timeval _timevalue ;
377374static int clock_time_system_init ()
You can’t perform that action at this time.
0 commit comments