Use monkeypatching for time-travelling if possible

Fix #441
Merge pull request #566 from mitsuhiko/dont_sleep

Use monkeypatching for time-travelling if possible