> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Record Timing • AI Agents Framework

> record_timing: Record a timing measurement.

# record\_timing

Method

> This is a method of the [**ProfilerCompat**](https://praison.ai/docs/sdk/reference/praisonai/classes/ProfilerCompat.md) class in the [**profiler**](https://praison.ai/docs/sdk/reference/praisonai/modules/profiler.md) module.

Record a timing measurement.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def record_timing(name: str, duration_ms: float, category: str, file: str, line: int) -> None
```

## Parameters

**name** `str` *required*

No description available.

**duration\_ms** `float` *required*

No description available.

**category** `str` (default: 'function')

No description available.

**file** `str` (default: '')

No description available.

**line** `int` (default: 0)

No description available.

## Uses

* `record_timing`
* `get_profiler`

## Used By

* [`ProfilerCompat.record_timing`](../functions/ProfilerCompat-record_timing)
* [`profile`](../functions/profile)
* [`profile_async`](../functions/profile_async)

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai/praisonai/profiler.py#L810)
>
> `praisonai/profiler.py` at line 810


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.