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.

StartTimer(1);

while(1) {

VAR = GetTimer(1);

if (VAR > 300)
{
//Drive Forward
}
else
{
//Drive Backwards
}
}

Oh that’s what it is for.
Thanks