git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6468 35acf78f-673a-0410-8e92-d51de3d6d3f4

master
gdisirio 2013-11-12 11:19:51 +00:00
parent 5a70ffdbf3
commit 70eadd26d7
1 changed files with 11 additions and 0 deletions

View File

@ -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