NewClockTimeWithOffset creates a ClockTimeWithOffset with the given start time.
(offset time.Duration)
| 74 | |
| 75 | // NewClockTimeWithOffset creates a ClockTimeWithOffset with the given start time. |
| 76 | func NewClockTimeWithOffset(offset time.Duration) *ClockTimeWithOffset { |
| 77 | return &ClockTimeWithOffset{offset: offset} |
| 78 | } |
| 79 | |
| 80 | // NowFunc returns a time provider function for t. |
| 81 | func (t *ClockTimeWithOffset) NowFunc() func() time.Time { |
no outgoing calls