Fix "infinite" delay when no timeouts are scheduled

Was passing an interval as a time.
Merge pull request #104 from talex5/fix-clock

Fix "infinite" delay when no timeouts are scheduled