record(duration:)
Convenience for recording a duration based on Duration
.
- iOS
- 16+
- macOS
- 13+
- tvOS
- 16+
- watchOS
- 9+
func record(duration: Duration)
Parameters
- duration
The
Duration
to record.
Duration
will be converted to an Int64
number of nanoseconds, and then recorded with nanosecond precision.