make time function overrideable
Merge pull request #5 from cenkalti/master

make time function overrideable