AddWallTime adds some time to the counter.
(t time.Duration)
| 61 | |
| 62 | // AddWallTime adds some time to the counter. |
| 63 | func (s *QueryStats) AddWallTime(t time.Duration) { |
| 64 | if s == nil { |
| 65 | return |
| 66 | } |
| 67 | |
| 68 | atomic.AddInt64((*int64)(&s.WallTime), int64(t)) |
| 69 | } |
| 70 | |
| 71 | // LoadWallTime returns current wall time. |
| 72 | func (s *QueryStats) LoadWallTime() time.Duration { |
no outgoing calls