feat: add count beanch

上级 fee3e948
......@@ -62,6 +62,7 @@ api.dot
api.svg
!docs/sample/api.svg
coca_reporter
coca_reporter_android
*.coverprofile
bug
_fixtures/tbs/demo-tbs-java-project
......
package main
import (
"fmt"
"github.com/phodal/coca/cmd"
"github.com/pkg/profile"
"os"
"time"
)
func main() {
//defer profile.Start().Stop()
t1 := time.Now() // get current time
defer profile.Start().Stop()
output := os.Stdout
rootCmd := cmd.NewRootCmd(output)
_ = rootCmd.Execute()
elapsed := time.Since(t1)
fmt.Println("App elapsed: ", elapsed)
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册