mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
Move clock_timespec_[add|subtract] to include/nuttx/clock.h
This commit is contained in:
@@ -270,6 +270,13 @@ EXTERN volatile clock_t g_system_timer;
|
|||||||
* Public Function Prototypes
|
* 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
|
* Name: clock_synchronize
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -102,11 +102,5 @@ int clock_abstime2ticks(clockid_t clockid,
|
|||||||
int clock_time2ticks(FAR const struct timespec *reltime,
|
int clock_time2ticks(FAR const struct timespec *reltime,
|
||||||
FAR sclock_t *ticks);
|
FAR sclock_t *ticks);
|
||||||
int clock_ticks2time(sclock_t ticks, FAR struct timespec *reltime);
|
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 */
|
#endif /* __SCHED_CLOCK_CLOCK_H */
|
||||||
|
|||||||
Reference in New Issue
Block a user