AVR Library Command Reference

2. Timing and Delays
The following timing and delay functions are designed for the Orangutans and 3pi, which run at 20 MHz. They will
give different results at other processor frequencies. These functions are not available within the Arduino
environment, which has its own delay functions. For the functions in this section only, the C functions are also
available from C++.
The timing functions use an interrupt on Timer2, which is configured when time_reset(), get_ms(), or an equivalent
function is called. This means that the timing code will conflict with other code that uses Timer2. However, the
functions here are compatible with the other uses of Timer2 within the Pololu library.
Pololu AVR Library Command Reference © 2001–2009 Pololu Corporation
2. Timing and Delays Page 3 of 35