const time.Second
44 uses
time (current package)
format.go#L1364: "s": int64(Second),
time.go#L605: Second = 1000 * Millisecond
time.go#L606: Minute = 60 * Second
time.go#L625: if u < uint64(Second) {
time.go#L748: sec := d / Second
time.go#L749: nsec := d % Second
time.go#L854: d := Duration(t.sec()-u.sec())*Second + Duration(t.nsec()-u.nsec())
time.go#L1452: case d < Second && Second%(d+d) == 0:
time.go#L1457: case d%Second == 0:
time.go#L1458: d1 := int64(d / Second)
time.go#L1460: r = Duration(sec%d1)*Second + Duration(nsec)
crypto/rand
rand_unix.go#L58: t := time.AfterFunc(60*time.Second, warnBlocked)
crypto/tls
conn.go#L1360: c.SetWriteDeadline(time.Now().Add(time.Second * 5))
handshake_client_tls13.go#L651: lifetime := time.Duration(msg.lifetime) * time.Second
handshake_server_tls13.go#L756: m.lifetime = uint32(maxSessionTicketLifetime / time.Second)
net
dial.go#L17: defaultTCPKeepAlive = 15 * time.Second
dial.go#L148: const saneMinimum = 2 * time.Second
dnsclient_unix.go#L358: 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#L197: if !force && zc.lastFetched.After(now.Add(-60*time.Second)) {
tcpsockopt_darwin.go#L18: 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#L3621: http2prefaceTimeout = 10 * time.Second
h2_bundle.go#L3622: http2firstSettingsTimeout = 2 * time.Second // should be in-flight with preface anyway
h2_bundle.go#L4881: var http2goAwayTimeout = 1 * time.Second
h2_bundle.go#L6651: return 15 * time.Second
h2_bundle.go#L6991: case <-time.After(time.Second * time.Duration(backoff)):
server.go#L2994: if max := 1 * time.Second; tempDelay > max {
transport.go#L45: Timeout: 30 * time.Second,
transport.go#L46: KeepAlive: 30 * time.Second,
transport.go#L50: IdleConnTimeout: 90 * time.Second,
transport.go#L51: TLSHandshakeTimeout: 10 * time.Second,
transport.go#L52: ExpectContinueTimeout: 1 * time.Second,
src.elv.sh/pkg/edit
prompt.go#L83: return time.Duration(seconds * float64(time.Second))
src.elv.sh/pkg/eval
builtin_fn_misc.go#L400: d = time.Duration(float64(time.Second) * duration)
builtin_fn_misc.go#L404: d = time.Duration(float64(time.Second) * f)
src.elv.sh/pkg/shell
interact.go#L72: cooldown := time.Second
interact.go#L98: cooldown = time.Second
src.elv.sh/pkg/store
db_store.go#L37: Timeout: 1 * time.Second,
testing
benchmark.go#L35: benchTime = benchTimeFlag{d: 1 * time.Second} // changed during test of testing package