Sign in
go
/
website
/
47aa77ee5c8e76cb4901fd5877cc2abd39497bd7
/
.
/
_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))
}
}