XCTClockMetric

public class XCTClockMetric : XCTest.XCTClockMetric, XCTMetric

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

XCTClockMetric is a wrapper to XCTest.XCTClockMetric.

  • Reports the measurements gathered for a metric between specific timestamps.

    Stores the measurement results of reportMeasurements(from:to:) allowing you to make assertions to them.

    Declaration

    Swift

    public override func reportMeasurements(from startTime: XCTPerformanceMeasurementTimestamp, to endTime: XCTPerformanceMeasurementTimestamp) throws -> [XCTPerformanceMeasurement]
  • Declaration

    Swift

    override public func copy(with zone: NSZone? = nil) -> Any