2025-09-27 10:17:16 +08: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)
}