Start starts the timer and clears the list of records.
()
| 887 | |
| 888 | // Start starts the timer and clears the list of records. |
| 889 | func (t *Timer) Start() { |
| 890 | t.start = time.Now() |
| 891 | t.last = t.start |
| 892 | t.records = t.records[:0] |
| 893 | } |
| 894 | |
| 895 | // Record records an event and assigns it the given name. |
| 896 | func (t *Timer) Record(name string) { |
no outgoing calls
no test coverage detected