---
title: totalRuntime
framework: energykit
role: symbol
role_heading: Instance Property
path: energykit/electricityinsightrecord/totalruntime
---

# totalRuntime

The total time that electricity-consuming devices actively ran.

## Declaration

```swift
var totalRuntime: Duration?
```

## See Also

### Getting the insight record data

- [range](energykit/electricityinsightrecord/range.md)
- [totalEnergy](energykit/electricityinsightrecord/totalenergy.md)
