Sign in
go
/
website
/
06562a2885c91e4dae9e04d8bb9a796d02ee4527
/
.
/
_content
/
talks
/
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))
}
}