Move clock_timespec_[add|subtract] to include/nuttx/clock.h

This commit is contained in:
Xiang Xiao 2018-08-27 06:04:04 -06:00 committed by Gregory Nutt
parent bd24562aa5
commit 71ad1993f2
2 changed files with 7 additions and 6 deletions

View file

@ -270,6 +270,13 @@ EXTERN volatile clock_t g_system_timer;
* Public Function Prototypes
****************************************************************************/
void clock_timespec_add(FAR const struct timespec *ts1,
FAR const struct timespec *ts2,
FAR struct timespec *ts3);
void clock_timespec_subtract(FAR const struct timespec *ts1,
FAR const struct timespec *ts2,
FAR struct timespec *ts3);
/****************************************************************************
* Name: clock_synchronize
*

View file

@ -102,11 +102,5 @@ int clock_abstime2ticks(clockid_t clockid,
int clock_time2ticks(FAR const struct timespec *reltime,
FAR sclock_t *ticks);
int clock_ticks2time(sclock_t ticks, FAR struct timespec *reltime);
void clock_timespec_add(FAR const struct timespec *ts1,
FAR const struct timespec *ts2,
FAR struct timespec *ts3);
void clock_timespec_subtract(FAR const struct timespec *ts1,
FAR const struct timespec *ts2,
FAR struct timespec *ts3);
#endif /* __SCHED_CLOCK_CLOCK_H */