Files
node-problem-detector/vendor/code.cloudfoundry.org/clock/fakeclock/fake_ticker.go
2016-12-20 18:11:03 +08:00

26 lines
331 B
Go

package fakeclock
import (
"time"
"code.cloudfoundry.org/clock"
)
type fakeTicker struct {
timer clock.Timer
}
func newFakeTicker(timer *fakeTimer) *fakeTicker {
return &fakeTicker{
timer: timer,
}
}
func (ft *fakeTicker) C() <-chan time.Time {
return ft.timer.C()
}
func (ft *fakeTicker) Stop() {
ft.timer.Stop()
}