Fix timing on OSX