github.com/graybobo/golang.org-package-offline-cache@v0.0.0-20200626051047-6608995c132f/x/talks/2014/playground/sleepfast.go (about)

     1  // +build OMIT
     2  
     3  package main
     4  
     5  import (
     6  	"fmt"
     7  	"time"
     8  )
     9  
    10  func main() {
    11  	start := time.Now()
    12  	fmt.Println(start)
    13  
    14  	for i := 0; i < 10; i++ {
    15  		time.Sleep(time.Nanosecond)
    16  		fmt.Println(time.Since(start))
    17  	}
    18  }