Make compare_timespec public so timer driver could reuse it

This commit is contained in:
Xiang Xiao
2020-02-07 13:38:52 +08:00
committed by Gregory Nutt
parent db4e2dbb6e
commit 20a9a62fdf
3 changed files with 20 additions and 24 deletions
+13
View File
@@ -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
*