fix availability of record(:Duration) API (#146)
This commit is contained in:
parent
0124d9ad5c
commit
ce594e71e9
|
|
@ -82,7 +82,7 @@ extension Timer {
|
||||||
///
|
///
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - duration: The `Duration` to record.
|
/// - duration: The `Duration` to record.
|
||||||
@available(macOS 13, iOS 16, tvOS 15, watchOS 8, *)
|
@available(macOS 13, iOS 16, tvOS 16, watchOS 9, *)
|
||||||
@inlinable
|
@inlinable
|
||||||
public func record(duration: Duration) {
|
public func record(duration: Duration) {
|
||||||
// `Duration` doesn't have a nice way to convert it nanoseconds or seconds,
|
// `Duration` doesn't have a nice way to convert it nanoseconds or seconds,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue