end static method

void end(
  1. PdfPerfPhase phase,
  2. int t0
)

Accumulates the time since begin's t0 into phase.

Implementation

@pragma('vm:prefer-inline')
@pragma('dart2js:tryInline')
static void end(PdfPerfPhase phase, int t0) {
  if (!kPdfPerfCompiledIn || !_enabled) return;
  _phaseUs![phase.index] += _clock!.elapsedMicroseconds - t0;
  _phaseCalls![phase.index]++;
}