While working on the DevTools profiler, I've noticed that durations are sometimes incorrect. This seems to be vaguely related to high/low priority state updates. Need to track this down more so I'm filing an issue for myself.
if (!enableProfilerTimer) {
    return;
  }
  if (timerPausedAt === 0) {
    timerPausedAt = now();
  }
  if (syncCommitStartTime > 0) {
    
    
    totalElapsedPauseTime += now() - syncCommitStartTime;
    syncCommitStartTime = 0;
  } else {
    totalElapsedPauseTime = 0;
  }
}
function recordElapsedActualRenderTime(fiber: Fiber): void {
  if (!enableProfilerTimer) {
    return;
  }
  if (__DEV__) {
    warningWithoutStack(
      fiber === fiberStack.pop(),
      'Unexpected Fiber (%s) popped.',
      getComponentName(fiber.type),
    );
  }
  fiber.actualDuration =
    now() - totalElapsedPauseTime - ((fiber.actualDuration: any): number);
}
function resumeActualRenderTimerIfPaused(isProcessingSyncWork: boolean): void {