3 ms·you can't if all code is running in the same thread, as sleeping would prevent any code to run at all.by radiospiel 12y agoyou can't if all code is running in the same thread, as sleeping would prevent any code to run at all.