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. |
||
|---|---|---|
| .. | ||
| CoreMetricsTests+XCTest.swift | ||
| CoreMetricsTests.swift | ||
| MetricsTests+XCTest.swift | ||
| MetricsTests.swift | ||
| TestMetrics.swift | ||