type time.Duration

241 uses

	time (current package)
		format.go#L1631: func ParseDuration(s string) (Duration, error) {
		format.go#L1722: 		return -Duration(d), nil
		format.go#L1727: 	return Duration(d), nil
		sleep.go#L14: func Sleep(d Duration)
		sleep.go#L52: func when(d Duration) int64 {
		sleep.go#L143: func NewTimer(d Duration) *Timer {
		sleep.go#L171: func (t *Timer) Reset(d Duration) bool {
		sleep.go#L187: 	case c.(chan Time) <- Now().Add(Duration(-delta)):
		sleep.go#L202: func After(d Duration) <-chan Time {
		sleep.go#L210: func AfterFunc(d Duration, f func()) *Timer {
		tick.go#L36: func NewTicker(d Duration) *Ticker {
		tick.go#L65: func (t *Ticker) Reset(d Duration) {
		tick.go#L86: func Tick(d Duration) <-chan Time {
		time.go#L915: type Duration int64
		time.go#L918: 	minDuration Duration = -1 << 63
		time.go#L919: 	maxDuration Duration = 1<<63 - 1
		time.go#L935: 	Nanosecond  Duration = 1
		time.go#L947: func (d Duration) String() string {
		time.go#L957: func (d Duration) format(buf *[32]byte) int {
		time.go#L1072: func (d Duration) Nanoseconds() int64 { return int64(d) }
		time.go#L1075: func (d Duration) Microseconds() int64 { return int64(d) / 1e3 }
		time.go#L1078: func (d Duration) Milliseconds() int64 { return int64(d) / 1e6 }
		time.go#L1090: func (d Duration) Seconds() float64 {
		time.go#L1097: func (d Duration) Minutes() float64 {
		time.go#L1104: func (d Duration) Hours() float64 {
		time.go#L1112: func (d Duration) Truncate(m Duration) Duration {
		time.go#L1121: func lessThanHalf(x, y Duration) bool {
		time.go#L1131: func (d Duration) Round(m Duration) Duration {
		time.go#L1158: func (d Duration) Abs() Duration {
		time.go#L1170: func (t Time) Add(d Duration) Time {
		time.go#L1198: func (t Time) Sub(u Time) Duration {
		time.go#L1202: 	d := Duration(t.sec()-u.sec())*Second + Duration(t.nsec()-u.nsec())
		time.go#L1214: func subMono(t, u int64) Duration {
		time.go#L1215: 	d := Duration(t - u)
		time.go#L1227: func Since(t Time) Duration {
		time.go#L1237: func Until(t Time) Duration {
		time.go#L1782: func (t Time) Truncate(d Duration) Time {
		time.go#L1799: func (t Time) Round(d Duration) Time {
		time.go#L1814: func div(t Time, d Duration) (qmod2 int, r Duration) {
		time.go#L1833: 		r = Duration(nsec % int32(d))
		time.go#L1839: 		r = Duration(sec%d1)*Second + Duration(nsec)
		time.go#L1886: 		r = Duration(u0)

	context
		context.go#L703: func WithTimeout(parent Context, timeout time.Duration) (Context, CancelFunc) {
		context.go#L710: func WithTimeoutCause(parent Context, timeout time.Duration, cause error) (Context, CancelFunc) {

	crypto/tls
		handshake_client_tls13.go#L846: 	lifetime := time.Duration(msg.lifetime) * time.Second

	github.com/cenkalti/backoff/v4
		backoff.go#L29: 	NextBackOff() time.Duration
		backoff.go#L36: const Stop time.Duration = -1
		backoff.go#L44: func (b *ZeroBackOff) NextBackOff() time.Duration { return 0 }
		backoff.go#L52: func (b *StopBackOff) NextBackOff() time.Duration { return Stop }
		backoff.go#L58: 	Interval time.Duration
		backoff.go#L62: func (b *ConstantBackOff) NextBackOff() time.Duration { return b.Interval }
		backoff.go#L64: func NewConstantBackOff(d time.Duration) *ConstantBackOff {
		context.go#L55: func (b *backOffContext) NextBackOff() time.Duration {
		exponential.go#L55: 	InitialInterval     time.Duration
		exponential.go#L58: 	MaxInterval         time.Duration
		exponential.go#L61: 	MaxElapsedTime time.Duration
		exponential.go#L62: 	Stop           time.Duration
		exponential.go#L65: 	currentInterval time.Duration
		exponential.go#L105: func WithInitialInterval(duration time.Duration) ExponentialBackOffOpts {
		exponential.go#L126: func WithMaxInterval(duration time.Duration) ExponentialBackOffOpts {
		exponential.go#L133: func WithMaxElapsedTime(duration time.Duration) ExponentialBackOffOpts {
		exponential.go#L140: func WithRetryStopDuration(duration time.Duration) ExponentialBackOffOpts {
		exponential.go#L171: func (b *ExponentialBackOff) NextBackOff() time.Duration {
		exponential.go#L188: func (b *ExponentialBackOff) GetElapsedTime() time.Duration {
		exponential.go#L198: 		b.currentInterval = time.Duration(float64(b.currentInterval) * b.Multiplier)
		exponential.go#L204: func getRandomValueFromInterval(randomizationFactor, random float64, currentInterval time.Duration) time.Duration {
		exponential.go#L215: 	return time.Duration(minInterval + (random * (maxInterval - minInterval + 1)))
		retry.go#L27: type Notify func(error, time.Duration)
		retry.go#L73: 		next time.Duration
		timer.go#L6: 	Start(duration time.Duration)
		timer.go#L22: func (t *defaultTimer) Start(duration time.Duration) {
		tries.go#L22: func (b *backOffTries) NextBackOff() time.Duration {

	github.com/gotd/log
		attr.go#L61: func (v Value) Duration() time.Duration { return time.Duration(int64(v.num)) }
		attr.go#L95: 		return time.Duration(int64(v.num))
		attr.go#L122: 		return time.Duration(int64(v.num)).String()
		attr.go#L172: func Duration(key string, value time.Duration) Attr {

	github.com/gotd/neo
		ticker.go#L11: 	dur  time.Duration
		ticker.go#L22: func (t *ticker) Reset(d time.Duration) {
		time.go#L13: 	Reset(d time.Duration)
		time.go#L20: 	Reset(d time.Duration)
		time.go#L45: func (t *Time) Timer(d time.Duration) Timer {
		time.go#L54: func (t *Time) Ticker(d time.Duration) Ticker {
		time.go#L96: func (t *Time) reset(d time.Duration, id int, do func(now time.Time), durp *time.Duration) {
		time.go#L103: func (t *Time) resetUnlocked(d time.Duration, id int, do func(now time.Time), durp *time.Duration) {
		time.go#L152: func (t *Time) Travel(d time.Duration) time.Time {
		time.go#L179: func (t *Time) Sleep(d time.Duration) { <-t.After(d) }
		time.go#L182: func (t *Time) When(d time.Duration) time.Time {
		time.go#L188: func (t *Time) After(d time.Duration) <-chan time.Time {
		timer.go#L19: func (t *timer) Reset(d time.Duration) {

	github.com/gotd/td/clock
		clock.go#L13: 	Timer(d time.Duration) Timer
		clock.go#L14: 	Ticker(d time.Duration) Ticker
		system.go#L13: func (s systemTimer) Reset(d time.Duration) {
		system.go#L33: func (s systemTicker) Reset(d time.Duration) {
		system.go#L39: func (clock systemClock) Ticker(d time.Duration) Ticker {
		system.go#L43: func (systemClock) Timer(d time.Duration) Timer {

	github.com/gotd/td/exchange
		flow.go#L37: 	timeout time.Duration
		flow.go#L63: func (e Exchanger) WithTimeout(timeout time.Duration) Exchanger {
		proto.go#L19: 	timeout time.Duration

	github.com/gotd/td/mtproto
		conn.go#L94: 	ackInterval  time.Duration
		conn.go#L101: 	pingTimeout time.Duration
		conn.go#L103: 	pingInterval time.Duration
		conn.go#L114: 	dialTimeout       time.Duration
		conn.go#L115: 	exchangeTimeout   time.Duration
		conn.go#L116: 	saltFetchInterval time.Duration
		conn.go#L117: 	getTimeout        func(req uint32) time.Duration
		options.go#L41: 	AckInterval time.Duration
		options.go#L44: 	RetryInterval time.Duration
		options.go#L49: 	DialTimeout time.Duration
		options.go#L51: 	ExchangeTimeout time.Duration
		options.go#L53: 	SaltFetchInterval time.Duration
		options.go#L55: 	PingTimeout time.Duration
		options.go#L57: 	PingInterval time.Duration
		options.go#L59: 	RequestTimeout func(req uint32) time.Duration
		options.go#L157: 		opt.RequestTimeout = func(req uint32) time.Duration {

	github.com/gotd/td/rpc
		engine.go#L27: 	retryInterval time.Duration
		options.go#L13: 	RetryInterval time.Duration

	github.com/gotd/td/tdsync
		backoff.go#L15: func (s *syncBackoff) NextBackOff() time.Duration {

	github.com/gotd/td/telegram
		client.go#L74: 	migrationTimeout time.Duration // immutable
		connect.go#L123: 	}, b, func(err error, timeout time.Duration) {
		options.go#L70: 	MigrationTimeout time.Duration
		options.go#L102: 	AckInterval time.Duration
		options.go#L104: 	RetryInterval time.Duration
		options.go#L108: 	ExchangeTimeout time.Duration
		options.go#L110: 	DialTimeout time.Duration

	github.com/gotd/td/telegram/auth
		password.go#L138: func (r ResetFailedWaitError) Until() time.Duration {

	github.com/gotd/td/telegram/auth/qrlogin
		qrlogin.go#L152: 	until := func(token Token) time.Duration {

	github.com/gotd/td/telegram/internal/manager
		conn.go#L367: 	}, c.connBackoff(ctx), func(err error, duration time.Duration) {

	github.com/gotd/td/tgerr
		flood_wait.go#L24: func AsFloodWait(err error) (d time.Duration, ok bool) {
		flood_wait.go#L27: 			return time.Second * time.Duration(rpcErr.Argument), true

	github.com/refraction-networking/utls
		handshake_client_tls13.go#L1043: 	lifetime := time.Duration(msg.lifetime) * time.Second
		u_roller.go#L13: 	TcpDialTimeout      time.Duration
		u_roller.go#L14: 	TlsHandshakeTimeout time.Duration
		u_roller.go#L39: 		TcpDialTimeout:      time.Second * time.Duration(tcpDialTimeoutInc),
		u_roller.go#L40: 		TlsHandshakeTimeout: time.Second * time.Duration(tlsHandshakeTimeoutInc),

	go.uber.org/atomic
		duration.go#L37: var _zeroDuration time.Duration
		duration.go#L40: func NewDuration(val time.Duration) *Duration {
		duration.go#L49: func (x *Duration) Load() time.Duration {
		duration.go#L50: 	return time.Duration(x.v.Load())
		duration.go#L54: func (x *Duration) Store(val time.Duration) {
		duration.go#L61: func (x *Duration) CAS(old, new time.Duration) (swapped bool) {
		duration.go#L66: func (x *Duration) CompareAndSwap(old, new time.Duration) (swapped bool) {
		duration.go#L72: func (x *Duration) Swap(val time.Duration) (old time.Duration) {
		duration.go#L73: 	return time.Duration(x.v.Swap(int64(val)))
		duration.go#L83: 	var v time.Duration
		duration_ext.go#L28: func (d *Duration) Add(delta time.Duration) time.Duration {
		duration_ext.go#L29: 	return time.Duration(d.v.Add(int64(delta)))
		duration_ext.go#L33: func (d *Duration) Sub(delta time.Duration) time.Duration {
		duration_ext.go#L34: 	return time.Duration(d.v.Sub(int64(delta)))

	net
		dial.go#L139: 	Timeout time.Duration
		dial.go#L170: 	FallbackDelay time.Duration
		dial.go#L182: 	KeepAlive time.Duration
		dial.go#L279: 	timeout := timeRemaining / time.Duration(addrsRemaining)
		dial.go#L292: func (d *Dialer) fallbackDelay() time.Duration {
		dial.go#L485: func DialTimeout(network, address string, timeout time.Duration) (Conn, error) {
		dial.go#L832: 	KeepAlive time.Duration
		dnsclient_unix.go#L169: func (r *Resolver) exchange(ctx context.Context, server string, q dnsmessage.Question, timeout time.Duration, useTCP, ad bool) (dnsmessage.Parser, dnsmessage.Header, error) {
		dnsconfig.go#L34: 	timeout       time.Duration // wait before giving up on a query, including retries
		dnsconfig_unix.go#L92: 					conf.timeout = time.Duration(n) * time.Second
		tcpsock.go#L139: 	Idle time.Duration
		tcpsock.go#L143: 	Interval time.Duration
		tcpsock.go#L249: func (c *TCPConn) SetKeepAlivePeriod(d time.Duration) error {
		tcpsock.go#L289: func newTCPConn(fd *netFD, keepAliveIdle time.Duration, keepAliveCfg KeepAliveConfig, preKeepAliveHook func(*netFD), keepAliveHook func(KeepAliveConfig)) *TCPConn {
		tcpsock.go#L476: func roundDurationUp(d time.Duration, to time.Duration) time.Duration {
		tcpsockopt_unix.go#L15: func setKeepAliveIdle(fd *netFD, d time.Duration) error {
		tcpsockopt_unix.go#L29: func setKeepAliveInterval(fd *netFD, d time.Duration) error {

	net/http
		client.go#L105: 	Timeout time.Duration
		h2_bundle.go#L1057: 	SendPingTimeout              time.Duration
		h2_bundle.go#L1058: 	PingTimeout                  time.Duration
		h2_bundle.go#L1059: 	WriteByteTimeout             time.Duration
		h2_bundle.go#L3708: 	byteTimeout time.Duration // immutable, WriteByteTimeout
		h2_bundle.go#L3711: func http2newBufferedWriter(conn net.Conn, timeout time.Duration) *http2bufferedWriter {
		h2_bundle.go#L3769: func http2writeWithByteTimeout(conn net.Conn, timeout time.Duration, p []byte) (n int, err error) {
		h2_bundle.go#L4116: 	IdleTimeout time.Duration
		h2_bundle.go#L4121: 	ReadIdleTimeout time.Duration
		h2_bundle.go#L4126: 	PingTimeout time.Duration
		h2_bundle.go#L4132: 	WriteByteTimeout time.Duration
		h2_bundle.go#L4623: 	readIdleTimeout             time.Duration
		h2_bundle.go#L4624: 	pingTimeout                 time.Duration
		h2_bundle.go#L5494: func (sc *http2serverConn) shutDownIn(d time.Duration) {
		h2_bundle.go#L7444: 	IdleConnTimeout time.Duration
		h2_bundle.go#L7452: 	ReadIdleTimeout time.Duration
		h2_bundle.go#L7457: 	PingTimeout time.Duration
		h2_bundle.go#L7462: 	WriteByteTimeout time.Duration
		h2_bundle.go#L7615: 	idleTimeout time.Duration // or 0 for never
		h2_bundle.go#L7646: 	readIdleTimeout             time.Duration
		h2_bundle.go#L7647: 	pingTimeout                 time.Duration
		h2_bundle.go#L7805: 	timeout time.Duration
		h2_bundle.go#L7912: 				d := time.Second * time.Duration(backoff)
		h2_bundle.go#L8071: func (t *http2Transport) expectContinueTimeout() time.Duration {
		h2_bundle.go#L8566: func (cc *http2ClientConn) responseHeaderTimeout() time.Duration {
		h2_bundle.go#L10646: func (t *http2Transport) idleConnTimeout() time.Duration {
		http.go#L285: 	SendPingTimeout time.Duration
		http.go#L290: 	PingTimeout time.Duration
		http.go#L295: 	WriteByteTimeout time.Duration
		server.go#L913: func (s *Server) tlsHandshakeTimeout() time.Duration {
		server.go#L914: 	var ret time.Duration
		server.go#L915: 	for _, v := range [...]time.Duration{
		server.go#L2994: 	ReadTimeout time.Duration
		server.go#L3002: 	ReadHeaderTimeout time.Duration
		server.go#L3009: 	WriteTimeout time.Duration
		server.go#L3015: 	IdleTimeout time.Duration
		server.go#L3162: 	nextPollInterval := func() time.Duration {
		server.go#L3164: 		interval := pollIntervalBase + time.Duration(rand.Intn(int(pollIntervalBase/10)))
		server.go#L3430: 	var tempDelay time.Duration // how long to sleep on accept failure
		server.go#L3607: func (s *Server) idleTimeout() time.Duration {
		server.go#L3614: func (s *Server) readHeaderTimeout() time.Duration {
		server.go#L3787: func TimeoutHandler(h Handler, dt time.Duration, msg string) Handler {
		server.go#L3802: 	dt      time.Duration
		transport.go#L186: 	TLSHandshakeTimeout time.Duration
		transport.go#L225: 	IdleConnTimeout time.Duration
		transport.go#L231: 	ResponseHeaderTimeout time.Duration
		transport.go#L240: 	ExpectContinueTimeout time.Duration

	net/http/httptrace
		trace.go#L254: 	IdleTime time.Duration

	os
		exec.go#L368: func (p *ProcessState) UserTime() time.Duration {
		exec.go#L373: func (p *ProcessState) SystemTime() time.Duration {
		exec_unix.go#L137: func (p *ProcessState) userTime() time.Duration {
		exec_unix.go#L138: 	return time.Duration(p.rusage.Utime.Nano()) * time.Nanosecond
		exec_unix.go#L141: func (p *ProcessState) systemTime() time.Duration {
		exec_unix.go#L142: 	return time.Duration(p.rusage.Stime.Nano()) * time.Nanosecond

	runtime/debug
		garbage.go#L17: 	PauseTotal     time.Duration   // total pause for all collections
		garbage.go#L18: 	Pause          []time.Duration // pause history, most recent first
		garbage.go#L20: 	PauseQuantiles []time.Duration
		garbage.go#L39: 		stats.Pause = make([]time.Duration, 2*maxPause+3)
		stubs.go#L12: func readGCStats(*[]time.Duration)