Total returns the duration since the timer was started.
()
| 904 | |
| 905 | // Total returns the duration since the timer was started. |
| 906 | func (t *Timer) Total() time.Duration { |
| 907 | return time.Since(t.start).Round(time.Millisecond) |
| 908 | } |
| 909 | |
| 910 | func (t *Timer) String() string { |
| 911 | sort.Slice(t.records, func(i, j int) bool { |
no outgoing calls
no test coverage detected