how to create a delay

Hi everybody,
I’m a new user of dynamic C and I’d like just how to create a delay of micro seconds (or ms) in my program.
Many thanks for your ideas.

Newbie here too

this should work

costate
{
waitfor(DelayMs(500)); // 500 ms

// add code here

}

Microseconds (�s) or milliseconds (ms) ?

For the first case, making short delay loops of a few microseconds (for example to ensure timing conditions are met when interfacing to slow hardware), no built-in function seems to exist.