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.
return commitTime;
}
function recordCommitTime(): void {
  if (!enableProfilerTimer) {
    return;
  }
  commitTime = now();
}
/**
 * The "actual" render time is total time required to render the descendants of a Profiler component.
 * This time is stored as a stack, since Profilers can be nested.
 * This time is started during the "begin" phase and stopped during the "complete" phase.
 * It is paused (and accumulated) in the event of an interruption or an aborted render.
 */
let fiberStack: Array<Fiber | null>;
if (__DEV__) {
  fiberStack = [];
}
let syncCommitStartTime: number = 0;
let timerPausedAt: number = 0;
let totalElapsedPauseTime: number = 0;
function checkActualRenderTimeStackEmpty(): void {