Limit the waitFor to use the script timeout

Allow the waitFor steps to be controlled with the script timeout using process.hrtime()