Timer purpose

What is the purpose of the Timer in Easy C (ultrasonic sensors???)
Example codes appreciated!

It allows you to stall a single function without stalling the loop. When you use
the wait command it freezes the program until the specified time has past.


while(1) {

VAR = GetTimer(1);

if (VAR > 300)
//Drive Forward
//Drive Backwards

Oh that’s what it is for.