init: 1.0.0
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
package tool
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"time"
|
||||
)
|
||||
|
||||
func MicrosecondsStr(elapsed time.Duration) string {
|
||||
return fmt.Sprintf("%.3fms", float64(elapsed.Nanoseconds())/1e6)
|
||||
}
|
||||
Reference in New Issue
Block a user