aboutsummaryrefslogtreecommitdiff
path: root/go/ssa/testdata/src/time/time.go
diff options
context:
space:
mode:
Diffstat (limited to 'go/ssa/testdata/src/time/time.go')
-rw-r--r--go/ssa/testdata/src/time/time.go24
1 files changed, 24 insertions, 0 deletions
diff --git a/go/ssa/testdata/src/time/time.go b/go/ssa/testdata/src/time/time.go
new file mode 100644
index 000000000..d8d577d61
--- /dev/null
+++ b/go/ssa/testdata/src/time/time.go
@@ -0,0 +1,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
+)