Glossary: Go Beyond the Basics
time.Sleep / time.Now / time.Since
Also written: time.Sleep, time.Now, time.Since
`time.Sleep(d)` pauses for `d`, `time.Now()` reads the clock, and `time.Since(start)` gives the time elapsed since `start`.
Glossary: Go Beyond the Basics
Also written: time.Sleep, time.Now, time.Since
`time.Sleep(d)` pauses for `d`, `time.Now()` reads the clock, and `time.Since(start)` gives the time elapsed since `start`.