From ce594e71e92a1610015017f83f402894df540e51 Mon Sep 17 00:00:00 2001 From: Konrad `ktoso` Malawski Date: Wed, 15 May 2024 18:08:10 +0900 Subject: [PATCH] fix availability of record(:Duration) API (#146) --- Sources/Metrics/Metrics.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Metrics/Metrics.swift b/Sources/Metrics/Metrics.swift index 42fcbc6..d99c4c6 100644 --- a/Sources/Metrics/Metrics.swift +++ b/Sources/Metrics/Metrics.swift @@ -82,7 +82,7 @@ extension Timer { /// /// - Parameters: /// - duration: The `Duration` to record. - @available(macOS 13, iOS 16, tvOS 15, watchOS 8, *) + @available(macOS 13, iOS 16, tvOS 16, watchOS 9, *) @inlinable public func record(duration: Duration) { // `Duration` doesn't have a nice way to convert it nanoseconds or seconds,