Use performance.now() for time measurement.