gh-EmergeTools-Pow/Sources/Pow/Extensions/Duration+TimeInterval.swift
Joe Fabisevich 5b95fe95b0
Moving Pow to @emergetools (#36)
Co-authored-by: Robert Böhnke <robb@robb.is>
Co-authored-by: Kasper Lahti <kasper@lahti.email>
2023-11-29 12:08:53 -03:00

9 lines
231 B
Swift

import Foundation
@available(iOS 16.0, *)
@available(macOS 13.0, *)
internal extension Duration {
var timeInterval: TimeInterval {
TimeInterval(components.seconds) + TimeInterval(components.attoseconds) / 1e18
}
}