System Module (sys)Millisecond Sleep (sys.msleep)On this pageMillisecond Sleep (sys.msleep) Declaration sys.msleep(milliseconds) Parameters milliseconds Number. Time to wait in milliseconds. Description Blocks the current thread for a while. This method may yield; other threads may run before it returns. Examples sys.msleep(1000) -- wait 1 second