# LatencyMeasurement

> **Class** in `langchain_google_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-google-community/callbacks/bigquery_callback/LatencyMeasurement)

Represents a latency measurement with optional component breakdown.

## Signature

```python
LatencyMeasurement(
    self,
    total_ms: int,
    component_ms: Optional[Dict[str, int]] = None,
)
```

## Constructors

```python
__init__(
    self,
    total_ms: int,
    component_ms: Optional[Dict[str, int]] = None,
) -> None
```

| Name | Type |
|------|------|
| `total_ms` | `int` |
| `component_ms` | `Optional[Dict[str, int]]` |


## Properties

- `total_ms`
- `component_ms`

---

[View source on GitHub](https://github.com/langchain-ai/langchain-google/blob/982e4015b249de8b9ba1e787746d8cc1f6d6b790/libs/community/langchain_google_community/callbacks/bigquery_callback.py#L354)