---
title: PerformanceServerTiming.duration
slug: Web/API/PerformanceServerTiming/duration
tags:
  - API
  - Property
  - Reference
  - ServerTiming
browser-compat: api.PerformanceServerTiming.duration
---
{{APIRef("Resource Timing API")}}

The **`duration`** read-only property returns a double that
contains the server-specified metric duration, or value `0.0`.

## Syntax

```js
serverTiming.duration;
```

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}

## See also

- {{domxref("PerformanceServerTiming")}}
- {{HTTPHeader("Server-Timing")}}
