MCPcopy
hub / github.com/aceld/zinx / RouterTime

Function RouterTime

znet/defaultrouterfunc.go:51–56  ·  view source on GitHub ↗

RouterTime Simply accumulates the time taken by all the routing groups, but not enabled (简单累计所有路由组的耗时,不启用)

(request ziface.IRequest)

Source from the content-addressed store, hash-verified

49// RouterTime Simply accumulates the time taken by all the routing groups, but not enabled
50// (简单累计所有路由组的耗时,不启用)
51func RouterTime(request ziface.IRequest) {
52 now := time.Now()
53 request.RouterSlicesNext()
54 duration := time.Since(now)
55 fmt.Println(duration.String())
56}
57
58func getInfo(ship int) (infoStr string) {
59

Callers

nothing calls this directly

Calls 2

RouterSlicesNextMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected