time.Time.Sub (method)
40 uses
time (current package)
time.go#L1198: func (t Time) Sub(u Time) Duration {
time.go#L1232: return Now().Sub(t)
time.go#L1242: return t.Sub(Now())
crypto/tls
common.go#L1111: if len(c.autoSessionTicketKeys) > 0 && c.time().Sub(c.autoSessionTicketKeys[0].created) < ticketKeyRotation {
common.go#L1121: if len(c.autoSessionTicketKeys) == 0 || c.time().Sub(c.autoSessionTicketKeys[0].created) >= ticketKeyRotation {
common.go#L1130: if c.time().Sub(k.created) < ticketKeyLifetime {
handshake_client.go#L485: ticketAge := c.config.time().Sub(time.Unix(int64(session.createdAt), 0))
handshake_client_tls13.go#L343: ticketAge := c.config.time().Sub(time.Unix(int64(hs.session.createdAt), 0))
handshake_server.go#L487: if c.config.time().Sub(createdAt) > maxSessionTicketLifetime {
handshake_server_tls13.go#L350: if c.config.time().Sub(createdAt) > maxSessionTicketLifetime {
github.com/cenkalti/backoff/v4
exponential.go#L189: return b.Clock.Now().Sub(b.startTime)
github.com/gotd/neo
net.go#L124: <-time.After(t.Sub(now))
github.com/gotd/td/exchange
client_flow.go#L76: c.log.Debug(ctx, "PQ decomposing complete", log.Duration("took", c.clock.Now().Sub(start)))
github.com/gotd/td/mtproto
connect.go#L60: log.Duration("duration", c.clock.Now().Sub(start)),
connect.go#L87: log.Duration("duration", c.clock.Now().Sub(start)),
connect.go#L100: log.Duration("duration", c.clock.Now().Sub(start)),
handle_session_created.go#L30: if (created.Before(now) && now.Sub(created) > maxPast) || created.Sub(now) > maxFuture {
handle_session_created.go#L34: log.Duration("time_difference", now.Sub(created)),
pfs.go#L38: wait := time.Unix(renewAt, 0).Sub(c.clock.Now())
read.go#L42: if created.Before(now) && now.Sub(created) > maxPast {
read.go#L45: if created.Sub(now) > maxFuture {
github.com/gotd/td/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#L153: return token.Expires().Sub(q.clock.Now()).Truncate(time.Second)
github.com/gotd/td/telegram/internal/manager
conn.go#L154: log.Duration("duration", end.Sub(start)),
github.com/refraction-networking/utls
common.go#L1096: if len(c.autoSessionTicketKeys) > 0 && c.time().Sub(c.autoSessionTicketKeys[0].created) < ticketKeyRotation {
common.go#L1106: if len(c.autoSessionTicketKeys) == 0 || c.time().Sub(c.autoSessionTicketKeys[0].created) >= ticketKeyRotation {
common.go#L1115: if c.time().Sub(k.created) < ticketKeyLifetime {
handshake_client.go#L535: ticketAge := c.config.time().Sub(time.Unix(int64(session.createdAt), 0))
handshake_client_tls13.go#L364: ticketAge := c.config.time().Sub(time.Unix(int64(hs.session.createdAt), 0))
handshake_server.go#L484: if c.config.time().Sub(createdAt) > maxSessionTicketLifetime {
handshake_server_tls13.go#L388: if c.config.time().Sub(createdAt) > maxSessionTicketLifetime {
net
dial.go#L274: timeRemaining := deadline.Sub(now)
net/http
h2_bundle.go#L5065: sc.readIdleTimer.Reset(pingAt.Sub(now))
h2_bundle.go#L6822: st.readDeadline = time.AfterFunc(deadline.Sub(time.Now()), st.onReadTimeout)
h2_bundle.go#L6824: st.readDeadline.Reset(deadline.Sub(time.Now()))
h2_bundle.go#L6848: st.writeDeadline = time.AfterFunc(deadline.Sub(time.Now()), st.onWriteTimeout)
h2_bundle.go#L6850: st.writeDeadline.Reset(deadline.Sub(time.Now()))
h2_bundle.go#L9483: idleTime := time.Now().Sub(cc.lastActive)
 |
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. |