mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 12:08:36 +08:00
Move clock_timespec_[add|subtract] to include/nuttx/clock.h
This commit is contained in:
parent
bd24562aa5
commit
71ad1993f2
2 changed files with 7 additions and 6 deletions
|
@ -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
|
||||
*
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue