# StartupTimingMetric

Artifact: [androidx.benchmark:benchmark-macro](https://developer.android.com/jetpack/androidx/releases/benchmark) [View Source](https://cs.android.com/search?q=file:androidx/benchmark/macro/Metric.kt+class:androidx.benchmark.macro.StartupTimingMetric) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/benchmark#1.1.0)

*** ** * ** ***


```
public final class StartupTimingMetric extends Metric
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [androidx.benchmark.macro.Metric](https://developer.android.com/reference/androidx/benchmark/macro/Metric) ||
|   | ↳ | [androidx.benchmark.macro.StartupTimingMetric](https://developer.android.com/reference/androidx/benchmark/macro/StartupTimingMetric) |

*** ** * ** ***

Captures app startup timing metrics.

This outputs the following measurements:

- `timeToInitialDisplayMs` - Time from the system receiving a launch intent to rendering the first frame of the destination Activity.

- `timeToFullDisplayMs` - Time from the system receiving a launch intent until the application reports fully drawn via `https://developer.android.com/reference/android/app/Activity.html#reportFullyDrawn()`. The measurement stops at the completion of rendering the first frame after (or containing) the `reportFullyDrawn()` call. This measurement may not be available prior to API 29.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/benchmark/macro/StartupTimingMetric#StartupTimingMetric()()` |

## Public constructors

### StartupTimingMetric

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/benchmark#1.1.0)

```
public StartupTimingMetric()
```