use window.performance.now when available