time.Time.UnixNano (method)
39 uses
time (current package)
time.go#L1137: func (t Time) UnixNano() int64 {
crypto/rand
rand_unix.go#L152: ns := time.Now().UnixNano()
github.com/aws/aws-sdk-go/aws
convert_types.go#L872: return t.UnixNano() / int64(time.Millisecond/time.Nanosecond)
github.com/aws/aws-sdk-go/aws/credentials/stscreds
assume_role_provider.go#L304: p.RoleSessionName = fmt.Sprintf("%d", time.Now().UTC().UnixNano())
web_identity_provider.go#L120: sessionName = strconv.FormatInt(now().UnixNano(), 10)
github.com/aws/aws-sdk-go/aws/csm
metric.go#L13: ns := time.Duration(time.Time(t).UnixNano())
github.com/aws/aws-sdk-go/internal/sdkrand
locked_source.go#L29: var SeededRand = rand.New(&lockedSource{src: rand.NewSource(time.Now().UnixNano())})
github.com/aws/aws-sdk-go/private/protocol
timestamp.go#L59: ms := t.UnixNano() / int64(time.Millisecond)
github.com/evanw/esbuild/pkg/api
api_impl.go#L978: rand.Seed(time.Now().UnixNano())
github.com/go-git/go-billy/v5/util
util.go#L125: return uint32(time.Now().UnixNano() + int64(os.Getpid()))
github.com/go-git/go-git/v5/plumbing/format/index
encoder.go#L128: if t.Unix() < 0 || t.UnixNano() < 0 {
github.com/go-redis/redis/v8
commands.go#L535: tm.UnixNano()/int64(time.Millisecond),
github.com/prometheus/client_golang/prometheus
gauge.go#L99: g.Set(float64(time.Now().UnixNano()) / 1e9)
github.com/prometheus/common/model
time.go#L53: return TimeFromUnixNano(time.Now().UnixNano())
golang.org/x/crypto/ssh
tcpip.go#L48: var portRandomizer = rand.New(rand.NewSource(time.Now().UnixNano()))
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/pkgsite/internal/config
config.go#L559: src := rand.NewSource(time.Now().UnixNano())
google.golang.org/grpc
clientconn.go#L783: atomic.StoreInt64(&cc.czData.lastCallStartedTime, time.Now().UnixNano())
clientconn.go#L1474: atomic.StoreInt64(&ac.czData.lastCallStartedTime, time.Now().UnixNano())
server.go#L971: atomic.StoreInt64(&s.czData.lastCallStartedTime, time.Now().UnixNano())
google.golang.org/grpc/internal/grpcrand
grpcrand.go#L30: r = rand.New(rand.NewSource(time.Now().UnixNano()))
google.golang.org/grpc/internal/transport
http2_client.go#L623: atomic.StoreInt64(&t.czData.lastStreamCreatedTime, time.Now().UnixNano())
http2_client.go#L1281: atomic.StoreInt64(&t.lastRead, time.Now().UnixNano())
http2_client.go#L1296: atomic.StoreInt64(&t.lastRead, time.Now().UnixNano())
http2_client.go#L1359: prevNano := time.Now().UnixNano()
http2_client.go#L1369: timer.Reset(time.Duration(lastRead) + t.kp.Time - time.Duration(time.Now().UnixNano()))
http2_client.go#L1464: atomic.StoreInt64(&t.czData.lastMsgSentTime, time.Now().UnixNano())
http2_client.go#L1469: atomic.StoreInt64(&t.czData.lastMsgRecvTime, time.Now().UnixNano())
http2_server.go#L281: atomic.StoreInt64(&t.lastRead, time.Now().UnixNano())
http2_server.go#L412: atomic.StoreInt64(&t.czData.lastStreamCreatedTime, time.Now().UnixNano())
http2_server.go#L460: atomic.StoreInt64(&t.lastRead, time.Now().UnixNano())
http2_server.go#L964: prevNano := time.Now().UnixNano()
http2_server.go#L1017: kpTimer.Reset(time.Duration(lastRead) + t.kp.Time - time.Duration(time.Now().UnixNano()))
http2_server.go#L1237: atomic.StoreInt64(&t.czData.lastMsgSentTime, time.Now().UnixNano())
http2_server.go#L1242: atomic.StoreInt64(&t.czData.lastMsgRecvTime, time.Now().UnixNano())
io/ioutil
tempfile.go#L25: return uint32(time.Now().UnixNano() + int64(os.Getpid()))
os
file_posix.go#L182: utimes[0] = syscall.NsecToTimespec(atime.UnixNano())
file_posix.go#L183: utimes[1] = syscall.NsecToTimespec(mtime.UnixNano())
runtime/pprof
proto.go#L340: b.pb.int64Opt(tagProfile_TimeNanos, b.start.UnixNano())
 |
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. |