swift-metrics/Tests
Nathan Harris 8e5110dcd6 Add `Timer.recordNanoseconds` Generic Overload (#28) (#30)
Motivation:

As discussed in Issue #28, there are a few preferred lightweight APIs for getting timestamps such as `DispatchTime` but those APIs return `UInt64` types, which need to be handled for overflow.

Modifications:

Added a generic `BinaryInteger` overload method for `recordNanoseconds` that guards against accidental overflows from `UInt64` to `Int64`

Result:

Users now have access to a new method to record nanosecond measurements with `Timer` that guards against overflows.
2019-05-25 21:36:56 -07:00
..
MetricsTests Add `Timer.recordNanoseconds` Generic Overload (#28) (#30) 2019-05-25 21:36:56 -07:00
LinuxMain.swift fix linux tests formatting (#13) 2019-04-12 10:57:04 -07:00