Embedded TCP/IP stack: fnet_timer_get_interval

FNET

Embedded TCP/IP stack  4.1.0
fnet_time_t fnet_timer_get_interval ( fnet_time_t  start,
fnet_time_t  end 
)

Calculates an interval between two moments in time.

Parameters
startStart time in ticks.
endEnd time in ticks.
Returns
This function returns an interval value between two time moments (in timer ticks).

This function calculates an interval between two moments in time, start and end. This function takes into account also a possible counter overrun (start>end).


© 2005-2018 by Andrey Butok. http://fnet.sourceforge.net