Fix performance.now() detection