Replace Date() with window.performance.now()