const time.Second
68 uses
time (current package)
format.go#L1621: "s": uint64(Second),
time.go#L938: Second = 1000 * Millisecond
time.go#L939: Minute = 60 * Second
time.go#L967: if u < uint64(Second) {
time.go#L1091: sec := d / Second
time.go#L1092: nsec := d % Second
time.go#L1202: d := Duration(t.sec()-u.sec())*Second + Duration(t.nsec()-u.nsec())
time.go#L1831: case d < Second && Second%(d+d) == 0:
time.go#L1836: case d%Second == 0:
time.go#L1837: d1 := int64(d / Second)
time.go#L1839: r = Duration(sec%d1)*Second + Duration(nsec)
crypto/tls
conn.go#L1477: c.SetWriteDeadline(time.Now().Add(time.Second * 5))
handshake_client_tls13.go#L846: lifetime := time.Duration(msg.lifetime) * time.Second
handshake_server_tls13.go#L1004: m.lifetime = uint32(maxSessionTicketLifetime / time.Second)
github.com/cenkalti/backoff/v4
exponential.go#L82: DefaultMaxInterval = 60 * time.Second
github.com/coder/websocket
close.go#L185: ctx, cancel := context.WithTimeout(context.Background(), time.Second*5)
close.go#L199: ctx, cancel := context.WithTimeout(context.Background(), time.Second*5)
close.go#L231: t := time.NewTimer(time.Second * 15)
dial.go#L154: timer := time.AfterFunc(time.Second*3, func() {
read.go#L302: ctx, cancel := context.WithTimeout(ctx, time.Second*5)
write.go#L232: ctx, cancel := context.WithTimeout(ctx, time.Second*5)
github.com/gotd/td/mtproto
options.go#L133: opt.AckInterval = 15 * time.Second
options.go#L136: opt.RetryInterval = 5 * time.Second
options.go#L142: opt.DialTimeout = 35 * time.Second
options.go#L151: opt.PingTimeout = 15 * time.Second
options.go#L158: return 15 * time.Second
read.go#L23: maxPast = time.Second * 300
read.go#L24: maxFuture = time.Second * 30
github.com/gotd/td/rpc
options.go#L22: cfg.RetryInterval = time.Second * 10
github.com/gotd/td/telegram
builder.go#L122: timer := clock.System.Timer(timeout + 1*time.Second)
options.go#L179: opt.MigrationTimeout = time.Second * 15
options.go#L204: b.MaxInterval = time.Second * 5
github.com/gotd/td/telegram/auth/qrlogin
qrlogin.go#L153: return token.Expires().Sub(q.clock.Now()).Truncate(time.Second)
github.com/gotd/td/telegram/internal/manager
create.go#L34: b.MaxElapsedTime = time.Second * 30
create.go#L35: b.MaxInterval = time.Second * 5
github.com/gotd/td/tgerr
flood_wait.go#L27: return time.Second * time.Duration(rpcErr.Argument), true
flood_wait.go#L65: timer := opt.clock.Timer(d + 1*time.Second)
github.com/refraction-networking/utls
conn.go#L1479: c.SetWriteDeadline(time.Now().Add(time.Second * 5))
handshake_client_tls13.go#L1043: lifetime := time.Duration(msg.lifetime) * time.Second
handshake_server_tls13.go#L1013: m.lifetime = uint32(maxSessionTicketLifetime / time.Second)
u_roller.go#L39: TcpDialTimeout: time.Second * time.Duration(tcpDialTimeoutInc),
u_roller.go#L40: TlsHandshakeTimeout: time.Second * time.Duration(tlsHandshakeTimeoutInc),
net
dial.go#L20: defaultTCPKeepAliveIdle = 15 * time.Second
dial.go#L24: defaultTCPKeepAliveInterval = 15 * time.Second
dial.go#L281: const saneMinimum = 2 * time.Second
dnsclient_unix.go#L402: if conf.lastChecked.After(now.Add(-5 * time.Second)) {
dnsconfig_unix.go#L22: timeout: 5 * time.Second,
dnsconfig_unix.go#L92: conf.timeout = time.Duration(n) * time.Second
hosts.go#L16: const cacheMaxAge = 5 * time.Second
interface.go#L201: 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#L23: secs := int(roundDurationUp(d, time.Second))
tcpsockopt_unix.go#L37: secs := int(roundDurationUp(d, time.Second))
net/http
fs.go#L525: modtime = modtime.Truncate(time.Second)
fs.go#L576: modtime = modtime.Truncate(time.Second)
h2_bundle.go#L1134: http2setDefault(&conf.PingTimeout, 1, math.MaxInt64, 15*time.Second)
h2_bundle.go#L4039: http2prefaceTimeout = 10 * time.Second
h2_bundle.go#L4040: http2firstSettingsTimeout = 2 * time.Second // should be in-flight with preface anyway
h2_bundle.go#L5474: var http2goAwayTimeout = 1 * time.Second
h2_bundle.go#L7912: d := time.Second * time.Duration(backoff)
h2_bundle.go#L9479: unusedWaitTime := 5 * time.Second
server.go#L3445: if max := 1 * time.Second; tempDelay > max {
transport.go#L49: Timeout: 30 * time.Second,
transport.go#L50: KeepAlive: 30 * time.Second,
transport.go#L54: IdleConnTimeout: 90 * time.Second,
transport.go#L55: TLSHandshakeTimeout: 10 * time.Second,
transport.go#L56: ExpectContinueTimeout: 1 * time.Second,
 |
The pages are generated with Golds v0.8.4. (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 @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |