time.Time.Sub (method)

28 uses

	time (current package)
		time.go#L884: func (t Time) Sub(u Time) Duration {
		time.go#L919: 	return now.Sub(t)
		time.go#L932: 	return t.Sub(now)

	crypto/tls
		common.go#L937: 	if len(c.autoSessionTicketKeys) > 0 && c.time().Sub(c.autoSessionTicketKeys[0].created) < ticketKeyRotation {
		common.go#L947: 	if len(c.autoSessionTicketKeys) == 0 || c.time().Sub(c.autoSessionTicketKeys[0].created) >= ticketKeyRotation {
		common.go#L956: 			if c.time().Sub(k.created) < ticketKeyLifetime {
		handshake_client.go#L392: 	ticketAge := c.config.time().Sub(time.Unix(int64(session.createdAt), 0))
		handshake_client_tls13.go#L260: 			ticketAge := c.config.time().Sub(time.Unix(int64(hs.session.createdAt), 0))
		handshake_server.go#L438: 	if c.config.time().Sub(createdAt) > maxSessionTicketLifetime {
		handshake_server_tls13.go#L318: 		if c.config.time().Sub(createdAt) > maxSessionTicketLifetime {

	github.com/cenkalti/backoff/v4
		exponential.go#L134: 	return b.Clock.Now().Sub(b.startTime)

	github.com/gotd/neo
		net.go#L124: 		<-time.After(t.Sub(now))

	github.com/gotd/td/internal/exchange
		client_flow.go#L76: 	c.log.Debug("PQ decomposing complete", zap.Duration("took", c.clock.Now().Sub(start)))

	github.com/gotd/td/internal/mtproto
		connect.go#L39: 			zap.Duration("duration", c.clock.Now().Sub(start)),
		handle_session_created.go#L27: 	if (created.Before(now) && now.Sub(created) > maxPast) || created.Sub(now) > maxFuture {
		handle_session_created.go#L31: 			zap.Duration("time_difference", now.Sub(created)),
		read.go#L42: 	if created.Before(now) && now.Sub(created) > maxPast {
		read.go#L45: 	if created.Sub(now) > maxFuture {

	github.com/gotd/td/internal/tdsync
		log_group.go#L46: 			elapsed := g.clock.Now().Sub(start)
		log_group.go#L51: 		elapsed := g.clock.Now().Sub(start)

	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
		conn.go#L114: 			zap.Duration("duration", end.Sub(start)),

	net
		dial.go#L202: 	timeRemaining := deadline.Sub(now)

	net/http
		h2_bundle.go#L6609: 			st.readDeadline = time.AfterFunc(deadline.Sub(time.Now()), st.onReadTimeout)
		h2_bundle.go#L6611: 			st.readDeadline.Reset(deadline.Sub(time.Now()))
		h2_bundle.go#L6635: 			st.writeDeadline = time.AfterFunc(deadline.Sub(time.Now()), st.onWriteTimeout)
		h2_bundle.go#L6637: 			st.writeDeadline.Reset(deadline.Sub(time.Now()))