Use performance.now() when possible