---
title: cumulativeForegroundTime
framework: metrickit
role: symbol
role_heading: Instance Property
path: metrickit/mxappruntimemetric/cumulativeforegroundtime
---

# cumulativeForegroundTime

The total time the app is in the foreground.

## Declaration

```swift
var cumulativeForegroundTime: Measurement<UnitDuration> { get }
```

## See Also

### Reading application run time

- [cumulativeBackgroundTime](metrickit/mxappruntimemetric/cumulativebackgroundtime.md)
- [cumulativeBackgroundAudioTime](metrickit/mxappruntimemetric/cumulativebackgroundaudiotime.md)
- [cumulativeBackgroundLocationTime](metrickit/mxappruntimemetric/cumulativebackgroundlocationtime.md)
