TotalForegroundTimeMetric
A metric that measures the total time the app spent in the foreground.
Declaration
struct TotalForegroundTimeMetricDiscussion
This metric corresponds to the MetricResult.totalForegroundTime(_:) case. It appears in both intervalEntries and stateEntries when state reporting is enabled.
This type replaces the cumulativeForegroundTime property of MXAppRunTimeMetric.