github.com/rakyll/go@v0.0.0-20170216000551-64c02460d703/src/cmd/go/testdata/timeoutbench_test.go (about)

     1  package timeoutbench_test
     2  
     3  import (
     4  	"testing"
     5  	"time"
     6  )
     7  
     8  func BenchmarkSleep1s(b *testing.B) {
     9  	time.Sleep(1 * time.Second)
    10  }