NewTimer returns a new stop watch timer instance.
()
| 33 | |
| 34 | // NewTimer returns a new stop watch timer instance. |
| 35 | func NewTimer() *Timer { |
| 36 | return &Timer{ |
| 37 | start: time.Now(), |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | // Add records a time pivot. |
| 42 | func (t *Timer) Add(name string) { |
no outgoing calls