diff --git a/include/nuttx/clock.h b/include/nuttx/clock.h index db0552d2a64..ce354dcdf84 100644 --- a/include/nuttx/clock.h +++ b/include/nuttx/clock.h @@ -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 * diff --git a/sched/clock/clock.h b/sched/clock/clock.h index 8fe983534be..7eaf40a3882 100644 --- a/sched/clock/clock.h +++ b/sched/clock/clock.h @@ -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 */