summaryrefslogtreecommitdiff
path: root/internal/clock/provider.go
blob: 02e80421c3247e71e88edc13703becad6a1a7a7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
package clock

import (
	"time"
)

// Provider is an interface for a clock.
type Provider interface {
	Now() time.Time
	After(d time.Duration) <-chan time.Time
	AfterFunc(d time.Duration, f func()) *time.Timer
}