# Add \`SystemClock\` \(\#8239\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/0de867204428717f17e6c0e6e77b0feba826a7d8)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 0de867204428717f17e6c0e6e77b0feba826a7d8

Requested commit: 0de867204428717f17e6c0e6e77b0feba826a7d8

Commit: 0de867204428717f17e6c0e6e77b0feba826a7d8

Tree: 20a29d97b0c9ceaebace7946efe3b53726cb6190

Author: Marshall Bowers

Committer: GitHub

## Message

```
Add `SystemClock` (#8239)

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
```

## Parents

- [cc8e3c2286607bef5e41879ea211f8f6109f1b4f](https://git.cafe/gitcafe/zed/commit/cc8e3c2286607bef5e41879ea211f8f6109f1b4f?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/0de867204428717f17e6c0e6e77b0feba826a7d8?format=markdown)
