Thread_sleep_for()

Hello, I just want to confirm that the time used in the above function is always in ms - or is there a way ro differentiate between seconds, ms and us. I’m trying to move across to Keil Studio and and getting lots of errors come up because I’ve used the wait() function which no longer works.

Thanks

Andrew

Hello,

yeah, this one is in miliseconds

BR, Jan

Hi Jan,

I ended up using wait_us(time in us) and its compiling without the time() errors.

Appreciate your feedback - thank you

BR

Andrew