MCPcopy Create free account
hub / github.com/actiontech/dtle / PrettifyDurationOutput

Function PrettifyDurationOutput

driver/mysql/base/utils.go:43–50  ·  view source on GitHub ↗
(d time.Duration)

Source from the content-addressed store, hash-verified

41)
42
43func PrettifyDurationOutput(d time.Duration) string {
44 if d < time.Second {
45 return "0s"
46 }
47 result := fmt.Sprintf("%s", d)
48 result = prettifyDurationRegexp.ReplaceAllString(result, "")
49 return result
50}
51
52// StringContainsAll returns true if `s` contains all non empty given `substrings`
53// The function returns `false` if no non-empty arguments are given.

Callers 4

StatsMethod · 0.92
StatsMethod · 0.92
StatsMethod · 0.92

Calls

no outgoing calls

Tested by 1