1package congestion
2
3import "time"
4
5// A Clock returns the current time
6type Clock interface {
7	Now() time.Time
8}
9
10// DefaultClock implements the Clock interface using the Go stdlib clock.
11type DefaultClock struct{}
12
13var _ Clock = DefaultClock{}
14
15// Now gets the current time
16func (DefaultClock) Now() time.Time {
17	return time.Now()
18}
19