Skip to content

Replace time.Now().Sub(start) with time.Since(start)#3133

Open
08volt wants to merge 1 commit into
kubernetes:masterfrom
08volt:cleanup/time-since
Open

Replace time.Now().Sub(start) with time.Since(start)#3133
08volt wants to merge 1 commit into
kubernetes:masterfrom
08volt:cleanup/time-since

Conversation

@08volt

@08volt 08volt commented Jun 10, 2026

Copy link
Copy Markdown
Member

time.Since(t) is the idiomatic equivalent of time.Now().Sub(t) and is slightly clearer at the call site.

time.Since(t) is the idiomatic equivalent of time.Now().Sub(t) and is
slightly clearer at the call site.
@k8s-ci-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 08volt

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jun 10, 2026
@08volt

08volt commented Jun 10, 2026

Copy link
Copy Markdown
Member Author

/retest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants