How to use Time Units in Vex Text Auton

I am trying to figure this out. I want to use time units is my autonomous and I cant figure out how to do in the new vex text studio for non block. Can anyone give me advice or a sample?

Did you mean something like motor.setTimeout(5,vex::timeUnits::sec) to set limit on how long motor will try to reach target and tell it to give up after 5 sec?

https://api.vexcode.cloud/v5/html/classvex_1_1motor.html#a56b3b114a36270dd2cb7922459c6f59d

There’s task::sleep(milliseconds) which pauses the program for that amount of time.