segmentio / stats

Go package for abstracting stats collection
https://godoc.org/github.com/segmentio/stats
MIT License
208 stars 32 forks source link

feat(engine): add ClockAt for creating a clock with a specific start time #94

Closed dominicbarnes closed 5 years ago

dominicbarnes commented 5 years ago

This adds a helper (Engine.ClockAt) for creating a clock with a specified start time, rather than assuming time.Now(). The existing Engine.Clock method still works as originally designed.