Use Date.now() for error startTime