If you really need it please don't use "sleep". 


"It has been known to cause issues with multi-threaded programs on various platforms. Instead, we use "select(nil, nil, nil, <time>)" throughout the framework. We have found this works around the underlying issue."

As can be read at the HACKING document: https://github.com/rapid7/metasploit-framework/blob/master/HACKING