Sign in
go
/
talks
/
a07c284bcf333dc17a1489fd441e8fccf1e01c2a
/
.
/
content
/
2014
/
playground
/
sleepfast.go
blob: e275d1d46fa9b09c18d1128ca5fdfd682b45518a [
file
] [
log
] [
blame
]
// +build ignore,OMIT
package main
import (
"fmt"
"time"
)
func main() {
start := time.Now()
fmt.Println(start)
for i := 0; i < 10; i++ {
time.Sleep(time.Nanosecond)
fmt.Println(time.Since(start))
}
}