---
title: duration
framework: sensorkit
role: symbol
role_heading: Instance Property
path: sensorkit/srtextinputsession/duration
---

# duration

The length of time, in seconds, that the session spans.

## Declaration

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