Lines Matching full:duration
7 // Sleep pauses the current goroutine for at least the duration d.
8 // A negative or zero duration causes Sleep to return immediately.
9 func Sleep(d Duration)
26 // It returns what the time will be, in nanoseconds, Duration d in the future.
29 func when(d Duration) int64 {
65 // the current time on its channel after at least duration d.
66 func NewTimer(d Duration) *Timer {
80 // Reset changes the timer to expire after duration d.
83 func (t *Timer) Reset(d Duration) bool {
106 // After waits for the duration to elapse and then sends the current time
109 func After(d Duration) <-chan Time {
113 // AfterFunc waits for the duration to elapse and then calls f
116 func AfterFunc(d Duration, f func()) *Timer {