MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / rt_tick_get_delta

Function rt_tick_get_delta

src/clock.c:83–89  ·  view source on GitHub ↗

* @brief This function will return delta tick from base. * * @param base to consider * * @return Return delta tick. */

Source from the content-addressed store, hash-verified

81 * @return Return delta tick.
82 */
83rt_tick_t rt_tick_get_delta(rt_tick_t base)
84{
85 rt_tick_t tnow = rt_tick_get();
86 if (tnow >= base)
87 return tnow - base;
88 return RT_TICK_MAX - base + tnow + 1;
89}
90RTM_EXPORT(rt_tick_get_delta);
91
92/**

Callers 4

_serial_fifo_rxFunction · 0.85
_k230_pdma_safe_stopFunction · 0.85
test_pdma_rxFunction · 0.85

Calls 1

rt_tick_getFunction · 0.85

Tested by 1

test_pdma_rxFunction · 0.68