---
title: "latency | Speedscale Docs"
description: "Extract expected latency for RRPair using Speedscale's latency extractor to modify response times before sending responses back to improve API testing accuracy"
canonical: "https://docs.speedscale.com/guides/transformation/extractors/latency/"
---

[Documentation index](https://docs.speedscale.com/guides/llms.txt) | [Markdown](https://docs.speedscale.com/guides/transformation/extractors/latency/index.md) | [Canonical page](https://docs.speedscale.com/guides/transformation/extractors/latency/)

# latency

<a id="purpose"></a>

### Purpose

**latency** extracts the expected latency for this RRPair. This extractor is typically used in the responder to modify response time before sending the response back. The normal pattern to modify the latency would be `latency() <-> constant("100ms")`.

<a id="usage"></a>

### Usage

```json
"type": "latency"
```

This extractor has no user configuration.

<a id="example"></a>

### Example

```json
"type": "latency"
```
