Defines a common interface for timers.
| 6 | |
| 7 | // Defines a common interface for timers. |
| 8 | type Timer interface { |
| 9 | // Stops the timer and reports observation. |
| 10 | Stop() float64 |
| 11 | } |
| 12 | |
| 13 | func ReadAll(r io.Reader, t Timer) ([]byte, error) { |
| 14 | defer t.Stop() |
no outgoing calls
no test coverage detected