clock

var clock: () -> Double?

Where Date.now() reads the time from, in epoch milliseconds. Fix it to make tests stable.