---
title: duration
framework: network
role: symbol
role_heading: Instance Property
path: network/nwconnection/establishmentreport/duration
---

# duration

The total duration of the successful connection establishment attempt, from the preparing state to the ready state.

## Declaration

```swift
let duration: TimeInterval
```

## See Also

### Inspecting Connection Attempts

- [previousAttemptCount](network/nwconnection/establishmentreport/previousattemptcount.md)
- [attemptStartedAfterInterval](network/nwconnection/establishmentreport/attemptstartedafterinterval.md)
