If you're looking for a quick way to pause runtime while you:
- Wait for a response
- Making sure a variable updated successfully
len param is measured in milliseconds.
Sauce.sleep(15000); Resolves after 15 seconds
The transaction would resolve before the balance updated so I paused the script for 15 seconds while the transaction was being mined.
Hope this helps!