The solution by ghudson's is definitely effective. However, I found it comes at the price of high CPU load.
Using the Performance tab on Task Manager, I found my (one core) CPU was effectively at 100% for the entire duration of the specified pause time.
Another solution uses an API...