git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6468 35acf78f-673a-0410-8e92-d51de3d6d3f4
parent
5a70ffdbf3
commit
70eadd26d7
|
@ -719,6 +719,17 @@ typedef struct {
|
|||
#define chVTGetSystemTimeX() port_timer_get_time()
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Returns the elapsed time since the specified start time.
|
||||
*
|
||||
* @param[in] start start time
|
||||
* @return The elapsed time.
|
||||
*
|
||||
* @xclass
|
||||
*/
|
||||
#define chVTTimeElapsedSinceX(start) \
|
||||
((systime_t)(chVTGetSystemTimeX() - start))
|
||||
|
||||
/**
|
||||
* @brief Checks if the specified time is within the specified time window.
|
||||
* @note When start==end then the function returns always true because the
|
||||
|
|
Loading…
Reference in New Issue