Allow stubbing the time with options.nowInMs

With options.nowInMs you can specify a function to get the "current" time. Can be used for testing, for example.