GitHub / windows amd64 native GitHub-hosted native CI: success
GitHub / darwin arm64 native GitHub-hosted native CI: success
GitHub / darwin amd64 native GitHub-hosted native CI: success
ci-platforms / darwin amd64 smoke (push) Skipped
ci-platforms / windows amd64 smoke (push) Skipped
ci-platforms / darwin arm64 smoke (push) Skipped
github-native / gitea-pending (push) Skipped
github-native / darwin amd64 native (push) Skipped
github-native / linux amd64 native (push) Skipped
github-native / windows amd64 native (push) Skipped
ci / checks (push) Failing after 13m5s
github-native / darwin arm64 native (push) Skipped
github-native / gitea-result (push) Skipped
GitHub / linux amd64 native GitHub-hosted native CI: success
ci / release (push) Skipped
ci / build (amd64, linux, ubuntu-24.04) (push) Successful in 17m6s
12 lines
234 B
Go
12 lines
234 B
Go
//go:build !windows
|
|
|
|
package pump
|
|
|
|
import "time"
|
|
|
|
type mixTimer struct{ start time.Time }
|
|
|
|
func startMixTimer() mixTimer { return mixTimer{start: time.Now()} }
|
|
|
|
func (t mixTimer) elapsed() time.Duration { return time.Since(t.start) }
|