const time.Second
61 uses
time (current package)
format.go#L1579: "s": uint64(Second),
time.go#L635: Second = 1000 * Millisecond
time.go#L636: Minute = 60 * Second
time.go#L655: if u < uint64(Second) {
time.go#L778: sec := d / Second
time.go#L779: nsec := d % Second
time.go#L897: d := Duration(t.sec()-u.sec())*Second + Duration(t.nsec()-u.nsec())
time.go#L1577: case d < Second && Second%(d+d) == 0:
time.go#L1582: case d%Second == 0:
time.go#L1583: d1 := int64(d / Second)
time.go#L1585: r = Duration(sec%d1)*Second + Duration(nsec)
crypto/tls
conn.go#L1453: c.SetWriteDeadline(time.Now().Add(time.Second * 5))
handshake_client_tls13.go#L736: lifetime := time.Duration(msg.lifetime) * time.Second
handshake_server_tls13.go#L855: m.lifetime = uint32(maxSessionTicketLifetime / time.Second)
github.com/cenkalti/backoff/v4
exponential.go#L79: DefaultMaxInterval = 60 * time.Second
github.com/gotd/td/internal/mtproto
options.go#L116: opt.AckInterval = 15 * time.Second
options.go#L119: opt.RetryInterval = 5 * time.Second
options.go#L125: opt.DialTimeout = 35 * time.Second
options.go#L134: opt.PingTimeout = 15 * time.Second
options.go#L141: return 15 * time.Second
read.go#L23: maxPast = time.Second * 300
read.go#L24: maxFuture = time.Second * 30
github.com/gotd/td/internal/rpc
options.go#L22: cfg.RetryInterval = time.Second * 10
github.com/gotd/td/telegram
builder.go#L121: timer := clock.System.Timer(timeout + 1*time.Second)
options.go#L128: opt.MigrationTimeout = time.Second * 15
github.com/gotd/td/telegram/auth/qrlogin
qrlogin.go#L143: return token.Expires().Sub(q.clock.Now()).Truncate(time.Second)
github.com/gotd/td/telegram/internal/manager
create.go#L32: b.MaxElapsedTime = time.Second * 30
create.go#L33: b.MaxInterval = time.Second * 5
github.com/gotd/td/tgerr
flood_wait.go#L20: return time.Second * time.Duration(rpcErr.Argument), true
flood_wait.go#L57: timer := opt.clock.Timer(d + 1*time.Second)
go.uber.org/zap
config.go#L291: time.Second,
go.uber.org/zap/zapcore
buffered_write_syncer.go#L37: _defaultFlushInterval = 30 * time.Second
encoder.go#L99: sec := float64(nanos) / float64(time.Second)
encoder.go#L226: enc.AppendFloat64(float64(d) / float64(time.Second))
net
dial.go#L18: defaultTCPKeepAlive = 15 * time.Second
dial.go#L209: const saneMinimum = 2 * time.Second
dnsclient_unix.go#L385: if conf.lastChecked.After(now.Add(-5 * time.Second)) {
dnsconfig_unix.go#L21: timeout: 5 * time.Second,
dnsconfig_unix.go#L91: conf.timeout = time.Duration(n) * time.Second
hosts.go#L16: const cacheMaxAge = 5 * time.Second
interface.go#L200: if !force && zc.lastFetched.After(now.Add(-60*time.Second)) {
nss.go#L59: if conf.lastChecked.After(now.Add(-5 * time.Second)) {
tcpsockopt_unix.go#L17: secs := int(roundDurationUp(d, time.Second))
net/http
fs.go#L449: modtime = modtime.Truncate(time.Second)
fs.go#L500: modtime = modtime.Truncate(time.Second)
h2_bundle.go#L3867: http2prefaceTimeout = 10 * time.Second
h2_bundle.go#L3868: http2firstSettingsTimeout = 2 * time.Second // should be in-flight with preface anyway
h2_bundle.go#L5234: var http2goAwayTimeout = 1 * time.Second
h2_bundle.go#L7295: return 15 * time.Second
h2_bundle.go#L7660: d := time.Second * time.Duration(backoff)
server.go#L3067: if max := 1 * time.Second; tempDelay > max {
transport.go#L46: Timeout: 30 * time.Second,
transport.go#L47: KeepAlive: 30 * time.Second,
transport.go#L51: IdleConnTimeout: 90 * time.Second,
transport.go#L52: TLSHandshakeTimeout: 10 * time.Second,
transport.go#L53: ExpectContinueTimeout: 1 * time.Second,
nhooyr.io/websocket
close.go#L175: ctx, cancel := context.WithTimeout(context.Background(), time.Second*5)
dial.go#L139: timer := time.AfterFunc(time.Second*3, func() {
read.go#L282: ctx, cancel := context.WithTimeout(ctx, time.Second*5)
write.go#L235: ctx, cancel := context.WithTimeout(ctx, time.Second*5)
|
The pages are generated with Golds v0.6.7. (GOOS=linux 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. |