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