Skip to content

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`.

Where the book teaches it

Related terms

time.Duration