(&mut self, duration_ms: u64)
| 47 | } |
| 48 | |
| 49 | pub(crate) fn record_call(&mut self, duration_ms: u64) { |
| 50 | self.call_count += 1; |
| 51 | self.total_duration_ms += duration_ms; |
| 52 | self.last_called_at = Some( |
| 53 | SystemTime::now() |
| 54 | .duration_since(UNIX_EPOCH) |
| 55 | .unwrap_or_default() |
| 56 | .as_millis() as u64, |
| 57 | ); |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | /// Thread-safe registry for managing tools |
no outgoing calls
no test coverage detected