mirror of
https://github.com/apache/nuttx.git
synced 2026-06-08 18:37:46 +08:00
Make compare_timespec public so timer driver could reuse it
This commit is contained in:
@@ -270,6 +270,19 @@ EXTERN volatile clock_t g_system_timer;
|
||||
* Public Function Prototypes
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: clock_timespec_compare
|
||||
*
|
||||
* Description:
|
||||
* Return < 0 if time ts1 is before time ts2
|
||||
* Return > 0 if time ts2 is before time ts1
|
||||
* Return 0 if time ts1 is the same as time ts2
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
int clock_timespec_compare(FAR const struct timespec *ts1,
|
||||
FAR const struct timespec *ts2);
|
||||
|
||||
/****************************************************************************
|
||||
* Name: clock_timespec_add
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user