Hi,
there is no sleep/delay function, in order to avoid that the UI application "hangs" for the sleep time.
If you want to trigger a certain action, you should use a timer instead.
This ensures, that the entire UI application can continue (e.g. draw animations) and that it is able to react on further user inputs.