Make delay handle schedulers with integer time
Use local time in test
Added docstring