---
title: CPUTimeMetric
framework: metrickit
role: symbol
role_heading: Structure
path: metrickit/cputimemetric
---

# CPUTimeMetric

A metric that measures the total CPU time used by the app.

## Declaration

```swift
struct CPUTimeMetric
```

## Discussion

Discussion This metric corresponds to the MetricResult.cpuTime(_:) case. It appears only in intervalEntries and is not included in state entries.

## Topics

### Measurements

- [value](metrickit/cputimemetric/value.md)

## Relationships

### Conforms To

- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### CPU and memory metrics

- [CPUInstructionsCountMetric](metrickit/cpuinstructionscountmetric.md)
- [CPUExceptionDiagnostic](metrickit/cpuexceptiondiagnostic.md)
- [PeakMemoryMetric](metrickit/peakmemorymetric.md)
- [SuspendedMemoryMetric](metrickit/suspendedmemorymetric.md)
- [MemoryExceptionDiagnostic](metrickit/memoryexceptiondiagnostic.md)
