# cpuMainThreadFrameTime

> Total time between start of the frame and when the main thread finished the job, in ms.

## Definition

* **Type:** Field
* **Namespace:** [UnityEngine](/engine/6000.7/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public double cpuMainThreadFrameTime
```

### Remarks

This metric is also exposed as **CPU Main Thread Frame Time** profiler counter.

Additional Resources: [Get frame timing data](/engine/6000.7/manual/analysis/graphics-performance-profiling/profile-rendering/frame-timing-manager/get-timing-data.md).
