(stat string, startT time.Time)
| 134 | } |
| 135 | |
| 136 | func recordDuration(stat string, startT time.Time) { |
| 137 | stats.Get(stat).(*expvar.Int).Set(time.Since(startT).Milliseconds()) |
| 138 | } |
| 139 | |
| 140 | // ResetStats resets the expvar stats for this module. Mostly for test purposes. |
| 141 | func ResetStats() { |
no test coverage detected