PerfCounterSnapshot constructor

PerfCounterSnapshot(
  1. PerfCounter counter
)

Creates a new snapshop from a the specified counter.

Implementation

PerfCounterSnapshot(PerfCounter counter)
    : name = counter.name,
      maxTimeInMicroseconds = counter.maxTimeInMicroseconds,
      totalTimeInMicroseconds = counter.totalTimeInMicroseconds,
      totalCount = counter.totalCount,
      totalErrors = counter.totalErrors;