diff options
author | Rob Pike <r@golang.org> | 2009-03-07 16:56:05 -0800 |
---|---|---|
committer | Rob Pike <r@golang.org> | 2009-03-07 16:56:05 -0800 |
commit | 5116015ce258dfd1485df01a70dda28b3372dd4a (patch) | |
tree | 9f1d30be99e96191c3c502ad77ee77e847116b38 /src/lib/time/tick.go | |
parent | e6f5411bf6dd713f5e038efbd424490d989309e8 (diff) | |
download | golang-5116015ce258dfd1485df01a70dda28b3372dd4a.tar.gz |
document time
R=rsc
DELTA=42 (23 added, 1 deleted, 18 changed)
OCL=25881
CL=25886
Diffstat (limited to 'src/lib/time/tick.go')
-rw-r--r-- | src/lib/time/tick.go | 3 |
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 |