Workaround for lack of performance.now