SwiftDocCBenchmarkBenchmark.DurationClassBenchmark.DurationA duration metric in milliseconds.class DurationDiscussionUse this metric to measure how long a given named task takes.TopicsInitializersinit(id: String)Creates a new instance with the given name.init(id: String, duration: TimeInterval)Convenience init to use when the duration is tracked elsewhere.Instance Propertiesvar displayName: Stringvar identifier: Stringvar result: MetricValue?Instance Methodsfunc begin()func end()Type Propertiesstatic let displayName: Stringstatic let identifier: String