summaryrefslogtreecommitdiff
path: root/src/lib/time/tick.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/time/tick.go')
-rw-r--r--src/lib/time/tick.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/time/tick.go b/src/lib/time/tick.go
index cb76b7cd4..53e2234f8 100644
--- a/src/lib/time/tick.go
+++ b/src/lib/time/tick.go
@@ -48,6 +48,9 @@ func ticker(ns int64, c chan int64) {
}
}
+// Tick creates a synchronous channel that will send the time, in nanoseconds,
+// every ns nanoseconds. It adjusts the intervals to make up for pauses in
+// delivery of the ticks.
func Tick(ns int64) chan int64 {
if ns <= 0 {
return nil