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