()
| 46 | } |
| 47 | |
| 48 | func (t *timer) End() { |
| 49 | if t == nil { |
| 50 | return |
| 51 | } |
| 52 | if !headerPrinted { |
| 53 | fmt.Fprintln(os.Stderr, "\nExec times over 1ms:") |
| 54 | headerPrinted = true |
| 55 | } |
| 56 | if time.Since(t.time) >= time.Millisecond { |
| 57 | fmt.Fprintf(os.Stderr, "\"%s\" took %s\n", t.name, time.Since(t.time)) |
| 58 | } |
| 59 | } |
no outgoing calls
no test coverage detected