aboutsummaryrefslogtreecommitdiff
path: root/go/ssa/testdata/src/time/time.go
blob: d8d577d61d1b6d239cbf3aff2c852f3e53ed4ccb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package time

type Duration int64

func Sleep(Duration)

func NewTimer(d Duration) *Timer

type Timer struct {
	C <-chan Time
}

func (t *Timer) Stop() bool

type Time struct{}

func After(d Duration) <-chan Time

const (
	Nanosecond Duration = iota // Specific values do not matter here.
	Second
	Minute
	Hour
)