---
title: totalDuration
framework: xctest
role: symbol
role_heading: Instance Property
path: xctest/xctestrun/totalduration
---

# totalDuration

The number of seconds that elapse between when the run starts and when it stops.

## Declaration

```swift
var totalDuration: TimeInterval { get }
```

## See Also

### Tracking Test Durations

- [startDate](xctest/xctestrun/startdate.md)
- [stopDate](xctest/xctestrun/stopdate.md)
- [testDuration](xctest/xctestrun/testduration.md)
