{"modulePath":"github.com/bosh-tools/bosh-ext-cli","version":"v0.0.0-20180330055711-73df0bb5fc56","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package clock\n\n## Types\n\n```go\ntype Clock interface {\n\tNow() time.Time\n\tSleep(d time.Duration)\n\tSince(t time.Time) time.Duration\n\t// After waits for the duration to elapse and then sends the current time\n\t// on the returned channel.\n\t// It is equivalent to clock.NewTimer(d).C.\n\t// The underlying Timer is not recovered by the garbage collector\n\t// until the timer fires. If efficiency is a concern, use clock.NewTimer\n\t// instead and call Timer.Stop if the timer is no longer needed.\n\tAfter(d time.Duration) \u003c-chan time.Time\n\n\tNewTimer(d time.Duration) Timer\n\tNewTicker(d time.Duration) Ticker\n}\n```\n\n```go\nfunc NewClock() Clock\n```\n\n```go\ntype Ticker interface {\n\tC() \u003c-chan time.Time\n\tStop()\n}\n```\n\n```go\ntype Timer interface {\n\tC() \u003c-chan time.Time\n\tReset(d time.Duration) bool\n\tStop() bool\n}\n```\n\n","path":"github.com/bosh-tools/bosh-ext-cli/src/code.cloudfoundry.org/clock","name":"clock","synopsis":"","isRedistributable":true}
