28 lines
407 B
Go
Raw Normal View History

2022-12-08 23:08:04 -04:00
package timesource
import (
"context"
"time"
)
2022-12-08 23:08:04 -04:00
type WallClockTimeSource struct {
}
func NewDefaultClock() *WallClockTimeSource {
return &WallClockTimeSource{}
}
func (t *WallClockTimeSource) Now() time.Time {
return time.Now()
}
func (t *WallClockTimeSource) Start(ctx context.Context) error {
2022-12-08 23:08:04 -04:00
// Do nothing
return nil
}
func (t *WallClockTimeSource) Stop() error {
// Do nothing
return nil
}