mirror of
https://github.com/logos-messaging/logos-messaging-go.git
synced 2026-01-06 07:53:06 +00:00
25 lines
372 B
Go
25 lines
372 B
Go
package timesource
|
|
|
|
import "time"
|
|
|
|
type WallClockTimeSource struct {
|
|
}
|
|
|
|
func NewDefaultClock() *WallClockTimeSource {
|
|
return &WallClockTimeSource{}
|
|
}
|
|
|
|
func (t *WallClockTimeSource) Now() time.Time {
|
|
return time.Now()
|
|
}
|
|
|
|
func (t *WallClockTimeSource) Start() error {
|
|
// Do nothing
|
|
return nil
|
|
}
|
|
|
|
func (t *WallClockTimeSource) Stop() error {
|
|
// Do nothing
|
|
return nil
|
|
}
|