mirror of
https://github.com/apple/swift-nio
synced 2026-11-25 04:47:49 +00:00
Motivation: Using `Date()` in benchmarks leaves us open to the possibility that a clock update could occur between the start and end times affecting the measured interval. Modifications: Switch `measureRunTime` and related functions to use `DispatchTime` uptime in nanoseconds to calculate intervals Result: Tests should no longer be susceptible to clock updates.