MCPcopy
hub / github.com/cortesi/devd / String

Method String

timer/timer.go:23–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21}
22
23func (t Timer) String() string {
24 if t.tsRequestHeaders == 0 {
25 return "timer"
26 }
27 return fmt.Sprintf(
28 "%.2fms total, %.2fms to response headers, %.2fms sending response body",
29 float64(t.tsResponseDone-t.tsRequestHeaders)/1000000.0,
30 float64(t.tsResponseHeaders-t.tsRequestHeaders)/1000000.0,
31 float64(t.tsResponseDone-t.tsResponseHeaders)/1000000.0,
32 )
33}
34
35// RequestHeaders sets the time at which request headers were received
36func (t *Timer) RequestHeaders() {

Callers 1

WrapHandlerMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected