AddQueryStorageWallTime adds some time to the counter.
(t time.Duration)
| 214 | |
| 215 | // AddQueryStorageWallTime adds some time to the counter. |
| 216 | func (s *QueryStats) AddQueryStorageWallTime(t time.Duration) { |
| 217 | if s == nil { |
| 218 | return |
| 219 | } |
| 220 | |
| 221 | atomic.AddInt64((*int64)(&s.QueryStorageWallTime), int64(t)) |
| 222 | } |
| 223 | |
| 224 | // LoadQueryStorageWallTime returns current query storage wall time. |
| 225 | func (s *QueryStats) LoadQueryStorageWallTime() time.Duration { |
no outgoing calls