mirror of
https://github.com/zed-industries/zed.git
synced 2026-05-27 00:08:42 +00:00
This PR adds a `SystemClock` trait for abstracting away the system clock. This allows us to swap out the real system clock with a `FakeSystemClock` in the tests, thus allowing the fake passage of time. We're using this in `Telemetry` to better mock the clock for testing purposes. Release Notes: - N/A |
||
|---|---|---|
| .. | ||
| clock.rs | ||
| system_clock.rs | ||