This function is declared in the kos/thread.h file.
kos/thread.h
Retcode KosThreadSleep(rtl_uint32_t mdelay);
Suspends execution of the current thread for mdelay (in milliseconds).
mdelay
If successful, the function returns rcOk.