User Manual
// and the following call will result in an INCORRECT measure of the elapsed time in us
elapsed_time_us = ticks_to_microseconds(get_ticks()) - ticks_to_microseconds(prev_ticks);
static unsigned long OrangutanTime::ticksToMicroseconds(unsigned long num_ticks)
unsigned long ticks_to_microseconds(unsigned long num_ticks)
Returns the number of microseconds corresponding to the supplied number of ticks, num_ticks. One tick
equals 0.4 µs, so 2.5 ticks equals one microsecond.
Pololu AVR Library Command Reference © 2001–2015 Pololu Corporation
17. Timing and Delays Page 60 of 65