const time.Second
130 uses
time (current package)
format.go#L1501: "s": uint64(Second),
time.go#L611: Second = 1000 * Millisecond
time.go#L612: Minute = 60 * Second
time.go#L631: if u < uint64(Second) {
time.go#L754: sec := d / Second
time.go#L755: nsec := d % Second
time.go#L860: d := Duration(t.sec()-u.sec())*Second + Duration(t.nsec()-u.nsec())
time.go#L1512: case d < Second && Second%(d+d) == 0:
time.go#L1517: case d%Second == 0:
time.go#L1518: d1 := int64(d / Second)
time.go#L1520: r = Duration(sec%d1)*Second + Duration(nsec)
crypto/rand
rand_unix.go#L58: t := time.AfterFunc(60*time.Second, warnBlocked)
crypto/tls
conn.go#L1368: c.SetWriteDeadline(time.Now().Add(time.Second * 5))
handshake_client_tls13.go#L648: lifetime := time.Duration(msg.lifetime) * time.Second
handshake_server_tls13.go#L742: m.lifetime = uint32(maxSessionTicketLifetime / time.Second)
database/sql
sql.go#L1061: const minInterval = time.Second
github.com/aws/aws-sdk-go-v2/aws/retry
adaptive_ratelimit.go#L149: return time.Duration(v * float64(time.Second))
adaptive_ratelimit.go#L153: return float64(v) / float64(time.Second)
adaptive_ratelimit.go#L157: return float64(v.UnixNano()) / float64(time.Second)
jitter_backoff.go#L27: float64(maxBackoff) / float64(time.Second)),
standard.go#L31: DefaultMaxBackoff time.Duration = 20 * time.Second
github.com/aws/aws-sdk-go-v2/aws/transport/http
client.go#L20: DefaultHTTPTransportIdleConnTimeout = 90 * time.Second
client.go#L21: DefaultHTTPTransportTLSHandleshakeTimeout = 10 * time.Second
client.go#L22: DefaultHTTPTransportExpectContinueTimeout = 1 * time.Second
client.go#L30: DefaultDialConnectTimeout = 30 * time.Second
client.go#L31: DefaultDialKeepAliveTimeout = 30 * time.Second
github.com/aws/aws-sdk-go-v2/internal/timeconv
duration.go#L7: return time.Duration(v * float64(time.Second))
duration.go#L12: return float64(d) / float64(time.Second)
github.com/aws/aws-sdk-go-v2/service/s3
api_op_HeadBucket.go#L217: options.MinDelay = 5 * time.Second
api_op_HeadBucket.go#L218: options.MaxDelay = 120 * time.Second
api_op_HeadBucket.go#L252: options.MaxDelay = 120 * time.Second
api_op_HeadBucket.go#L370: options.MinDelay = 5 * time.Second
api_op_HeadBucket.go#L371: options.MaxDelay = 120 * time.Second
api_op_HeadBucket.go#L406: options.MaxDelay = 120 * time.Second
api_op_HeadObject.go#L550: options.MinDelay = 5 * time.Second
api_op_HeadObject.go#L551: options.MaxDelay = 120 * time.Second
api_op_HeadObject.go#L585: options.MaxDelay = 120 * time.Second
api_op_HeadObject.go#L708: options.MinDelay = 5 * time.Second
api_op_HeadObject.go#L709: options.MaxDelay = 120 * time.Second
api_op_HeadObject.go#L744: options.MaxDelay = 120 * time.Second
github.com/aws/aws-sdk-go-v2/service/s3/internal/customizations
presigned_expires.go#L45: query.Set("X-Amz-Expires", strconv.FormatInt(int64(m.Expires/time.Second), 10))
github.com/go-pg/pg/v10
listener.go#L272: const pingTimeout = time.Second
options.go#L112: opt.DialTimeout = 5 * time.Second
options.go#L138: opt.PoolTimeout = opt.ReadTimeout + time.Second
options.go#L140: opt.PoolTimeout = 30 * time.Second
options.go#L161: opt.MaxRetryBackoff = 4 * time.Second
options.go#L247: options.DialTimeout = time.Second * time.Duration(ct)
github.com/go-pg/pg/v10/internal/pool
pool.go#L199: time.Sleep(time.Second)
github.com/go-pg/pg/v10/orm
query.go#L1064: dur := internal.RetryBackoff(i-2, 250*time.Millisecond, 5*time.Second)
github.com/golang/protobuf/jsonpb
encode.go#L159: const secondInNanos = int64(time.Second / time.Nanosecond)
github.com/golang/protobuf/ptypes
duration.go#L30: d := time.Duration(dur.Seconds) * time.Second
duration.go#L31: if int64(d/time.Second) != dur.Seconds {
github.com/robfig/cron/v3
constantdelay.go#L15: if duration < time.Second {
constantdelay.go#L16: duration = time.Second
constantdelay.go#L19: Delay: duration - time.Duration(duration.Nanoseconds())%time.Second,
spec.go#L82: t = t.Add(1*time.Second - time.Duration(t.Nanosecond())*time.Nanosecond)
spec.go#L165: t = t.Truncate(time.Second)
spec.go#L167: t = t.Add(1 * time.Second)
go.pact.im/x/supervisor
restart.go#L11: restartInitialWait = time.Second
go.pact.im/x/zapjournal/tests
journalctl.go#L13: const journalctlTimeout = time.Second
go.uber.org/zap
config.go#L225: 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))
golang.org/x/net/http2
server.go#L55: prefaceTimeout = 10 * time.Second
server.go#L56: firstSettingsTimeout = 2 * time.Second // should be in-flight with preface anyway
server.go#L1412: var goAwayTimeout = 1 * time.Second
transport.go#L211: return 15 * time.Second
transport.go#L571: d := time.Second * time.Duration(backoff)
golang.org/x/net/internal/timeseries
timeseries.go#L20: 1 * time.Second,
timeseries.go#L21: 10 * time.Second,
timeseries.go#L33: 1 * time.Second,
golang.org/x/net/trace
events.go#L33: {10 * time.Second, "errs<10s"},
trace.go#L581: {Cond: minCond(1 * time.Second)},
trace.go#L582: {Cond: minCond(10 * time.Second)},
trace.go#L583: {Cond: minCond(100 * time.Second)},
trace.go#L939: if d < time.Second {
golang.org/x/tools/internal/gocommand
invoke.go#L277: case <-time.After(time.Second):
invoke.go#L293: case <-time.After(10 * time.Second): // a shorter wait as resChan should return quickly following Kill
google.golang.org/grpc
backoff.go#L35: MaxDelay: 120 * time.Second,
clientconn.go#L56: minConnectTimeout = 20 * time.Second
server.go#L182: connectionTimeout: 120 * time.Second,
server.go#L276: if kp.Time > 0 && kp.Time < time.Second {
server.go#L278: kp.Time = time.Second
server.go#L833: if max := 1 * time.Second; tempDelay > max {
service_config.go#L152: d = time.Duration(i) * time.Second
google.golang.org/grpc/backoff
backoff.go#L48: BaseDelay: 1.0 * time.Second,
backoff.go#L51: MaxDelay: 120 * time.Second,
google.golang.org/grpc/internal
internal.go#L40: KeepaliveMinPingTime = 10 * time.Second
google.golang.org/grpc/internal/binarylog
sink.go#L114: bufFlushDuration = 60 * time.Second
google.golang.org/grpc/internal/channelz
funcs.go#L117: ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
google.golang.org/grpc/internal/grpcutil
encode_duration.go#L55: if d := div(t, time.Second); d <= maxTimeoutValue {
google.golang.org/grpc/internal/resolver/dns
dns_resolver.go#L86: minDNSResRate = 30 * time.Second
google.golang.org/grpc/internal/transport
defaults.go#L33: defaultClientKeepaliveTimeout = 20 * time.Second
defaults.go#L39: defaultServerKeepaliveTimeout = 20 * time.Second
http2_client.go#L1783: timer := time.NewTimer(time.Second)
http2_server.go#L1418: timer := time.NewTimer(time.Second)
http_util.go#L187: return time.Second, true
google.golang.org/protobuf/types/known/durationpb
duration.pb.go#L179: d := time.Duration(secs) * time.Second
duration.pb.go#L180: overflow := d/time.Second != time.Duration(secs)
net
dial.go#L17: defaultTCPKeepAlive = 15 * time.Second
dial.go#L148: const saneMinimum = 2 * time.Second
dnsclient_unix.go#L363: if conf.lastChecked.After(now.Add(-5 * time.Second)) {
dnsconfig_unix.go#L43: timeout: 5 * time.Second,
dnsconfig_unix.go#L111: conf.timeout = time.Duration(n) * time.Second
hosts.go#L13: const cacheMaxAge = 5 * time.Second
interface.go#L198: if !force && zc.lastFetched.After(now.Add(-60*time.Second)) {
tcpsockopt_unix.go#L17: secs := int(roundDurationUp(d, time.Second))
net/http
fs.go#L433: modtime = modtime.Truncate(time.Second)
fs.go#L484: modtime = modtime.Truncate(time.Second)
h2_bundle.go#L3769: http2prefaceTimeout = 10 * time.Second
h2_bundle.go#L3770: http2firstSettingsTimeout = 2 * time.Second // should be in-flight with preface anyway
h2_bundle.go#L5047: var http2goAwayTimeout = 1 * time.Second
h2_bundle.go#L6883: return 15 * time.Second
h2_bundle.go#L7223: case <-time.After(time.Second * time.Duration(backoff)):
server.go#L3052: 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,
net/http/httptest
server.go#L230: t := time.AfterFunc(5*time.Second, s.logCloseHangDebugInfo)
server.go#L279: timer := time.NewTimer(5 * time.Second)
net/http/pprof
pprof.go#L142: sleep(r, time.Duration(sec)*time.Second)
pprof.go#L171: sleep(r, time.Duration(sec*float64(time.Second)))
pprof.go#L282: t := time.NewTimer(time.Duration(sec) * time.Second)
testing
benchmark.go#L35: benchTime = durationOrCountFlag{d: 1 * time.Second} // changed during test of testing package
fuzz.go#L33: minimizeDuration = durationOrCountFlag{d: 60 * time.Second, allowZero: true}
testing.go#L1118: const arbitraryTimeout = 2 * time.Second