IntrepidPursuits / swift-wisdom

A collection of additions to the Swift Standard Library created by Intrepid Pursuits developers
MIT License
39 stars 14 forks source link

TimeInterval to Measurement initializers and vice versa #148

Closed bobgilmore closed 6 years ago

bobgilmore commented 6 years ago

In order to make time-based Measurement objects easier to use, add initializers to convert between TimeIntervals and Measurements.

This allows us to create Measurment objects that specify their own units, pass them around in our code, and then easily create TimeIntervals when needed to pass to APIs that require them.

ghost commented 6 years ago
1 Message
:book: Executed 169 tests, with 0 failures (0 unexpected) in 0.547 (0.644) seconds

Generated by :no_entry_sign: Danger