2025-10-10 07:13:36 -07:00

11 lines
162 B
Go

package tool
import (
"fmt"
"time"
)
func MicrosecondsStr(elapsed time.Duration) string {
return fmt.Sprintf("%.3fms", float64(elapsed.Nanoseconds())/1e6)
}