Contents

XCTClockMetric

A metric to record the time that elapses during a performance test.

Declaration

class XCTClockMetric

Overview

XCTClockMetric measures the total elapsed time during execution of the block argument to measure(metrics:block:). The metric records time monotonically, regardless of changes to the system clock. Its result includes time spent executing code under test, and time when the CPU is idle or running other code.

Topics

Initializing an Item

See Also

Measurement Metrics