projects
/
platform
/
upstream
/
docker-engine.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Tizen_4.0 base
[platform/upstream/docker-engine.git]
/
vendor
/
github.com
/
pivotal-golang
/
clock
/
timer.go
1
package clock
2
3
import "time"
4
5
type Timer interface {
6
C() <-chan time.Time
7
Reset(d time.Duration) bool
8
Stop() bool
9
}
10
11
type realTimer struct {
12
t *time.Timer
13
}
14
15
func (t *realTimer) C() <-chan time.Time {
16
return t.t.C
17
}
18
19
func (t *realTimer) Reset(d time.Duration) bool {
20
return t.t.Reset(d)
21
}
22
23
func (t *realTimer) Stop() bool {
24
return t.t.Stop()
25
}