time.Duration.Nanoseconds (method)
15 uses
time (current package)
time.go#L729: func (d Duration) Nanoseconds() int64 { return int64(d) }
cloud.google.com/go/profiler
heap.go#L75: p.DurationNanos = duration.Nanoseconds()
contrib.go.opencensus.io/integrations/ocsql
dbstats_go1.11.go#L34: MeasureWaitDuration.M(float64(dbStats.WaitDuration.Nanoseconds())/1e6),
observability.go#L162: timeSpentMs := float64(time.Since(startTime).Nanoseconds()) / 1e6
github.com/aws/aws-sdk-go/aws/csm
reporter.go#L69: AttemptLatency: aws.Int(int(now.Sub(r.AttemptTime).Nanoseconds() / int64(time.Millisecond))),
github.com/golang/protobuf/ptypes
duration.go#L43: nanos := d.Nanoseconds()
golang.org/x/net/internal/timeseries
timeseries.go#L241: level.end = time.Unix(0, (t.UnixNano()/level.size.Nanoseconds())*level.size.Nanoseconds())
golang.org/x/net/trace
trace.go#L425: h.addMeasurement(elapsed.Nanoseconds() / 1e3)
google.golang.org/protobuf/types/known/durationpb
duration.pb.go#L168: nanos := d.Nanoseconds()
runtime/pprof
proto.go#L344: b.pb.int64Opt(tagProfile_DurationNanos, b.end.Sub(b.start).Nanoseconds())
testing
benchmark.go#L304: goalns := d.Nanoseconds()
benchmark.go#L306: prevns := b.duration.Nanoseconds()
benchmark.go#L370: return r.T.Nanoseconds() / int64(r.N)
benchmark.go#L422: ns = float64(r.T.Nanoseconds()) / float64(r.N)
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |