---
title: MXAppRunTimeMetric
framework: metrickit
role: symbol
role_heading: Class
path: metrickit/mxappruntimemetric
---

# MXAppRunTimeMetric

An object representing metrics about the amount of time the app is active.

## Declaration

```swift
class MXAppRunTimeMetric
```

## Topics

### Reading application run time

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

## Relationships

### Inherits From

- [MXMetric](metrickit/mxmetric.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)

## See Also

### App performance metrics

- [MXAppExitMetric](metrickit/mxappexitmetric.md)
- [MXForegroundExitData](metrickit/mxforegroundexitdata.md)
- [MXBackgroundExitData](metrickit/mxbackgroundexitdata.md)
- [MXMemoryMetric](metrickit/mxmemorymetric.md)
