MCPcopy Create free account
hub / github.com/ByteYellow/AgentProvenance / wallSecondsText

Function wallSecondsText

internal/cli/root.go:110–123  ·  view source on GitHub ↗
(startedAt, endedAt string)

Source from the content-addressed store, hash-verified

108}
109
110func wallSecondsText(startedAt, endedAt string) string {
111 if startedAt == "" || endedAt == "" {
112 return ""
113 }
114 start, err := time.Parse(time.RFC3339Nano, startedAt)
115 if err != nil {
116 return ""
117 }
118 end, err := time.Parse(time.RFC3339Nano, endedAt)
119 if err != nil {
120 return ""
121 }
122 return fmt.Sprintf("%.3f", end.Sub(start).Seconds())
123}

Callers 1

processCmdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected