MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / formatDurationSeconds

Function formatDurationSeconds

tools/bash/background.go:400–406  ·  view source on GitHub ↗
(duration time.Duration)

Source from the content-addressed store, hash-verified

398}
399
400func float64Ptr(value float64) *float64 {
401 return &value
402}
403
404func formatDurationSeconds(duration time.Duration) string {
405 text := strconv.FormatFloat(duration.Seconds(), 'f', -1, 64)
406 if !strings.ContainsAny(text, ".eE") {
407 text += ".0"
408 }
409 return text

Callers 1

runTaskMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected