# Use \`SystemClock\` in \`EventCoalescer\` \(\#8317\) · gitcafe/zed

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

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

Visibility: public

Requested revision: e06ff5f50763e41f999542c71991d95d12125aca

Requested commit: e06ff5f50763e41f999542c71991d95d12125aca

Commit: e06ff5f50763e41f999542c71991d95d12125aca

Tree: 723f806ac7887ddee27b77c8bae2cce9b452ea6e

Author: Marshall Bowers

Committer: GitHub

## Message

```
Use `SystemClock` in `EventCoalescer` (#8317)

This PR updates the `EventCoalescer` to use the `SystemClock` trait to
abstract over the clock.

This allows us to test the advancement of time without relying on the
caller passing in the current time.

Release Notes:

- N/A
```

## Parents

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

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