---
title: "DefaultMonotonicFrameClock"
description: "The [MonotonicFrameClock] used by [withFrameNanos] and [withFrameMillis] if one is not present in
the calling [kotlin.coroutines.CoroutineContext].

This value is no longer used by compose runtime."
type: "property"
---

<div class='type'>Property</div>


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>


> **Deprecated** MonotonicFrameClocks are not globally applicable across platforms. Use an appropriate local clock.

```kotlin
public expect val DefaultMonotonicFrameClock: MonotonicFrameClock
```


The `MonotonicFrameClock` used by `withFrameNanos` and `withFrameMillis` if one is not present in
the calling `kotlin.coroutines.CoroutineContext`.

This value is no longer used by compose runtime.



<div class='sourceset sourceset-desktop'>Desktop</div>


> **Deprecated** MonotonicFrameClocks are not globally applicable across platforms. Use an appropriate local clock.

```kotlin
public actual val DefaultMonotonicFrameClock: MonotonicFrameClock
```


<div class='sourceset sourceset-wasmJs'>WasmJs</div>


> **Deprecated** MonotonicFrameClocks are not globally applicable across platforms. Use an appropriate local clock.

```kotlin
public actual val DefaultMonotonicFrameClock: MonotonicFrameClock
```


The `MonotonicFrameClock` used by `withFrameNanos` and `withFrameMillis` if one is not present in
the calling `kotlin.coroutines.CoroutineContext`.

This value is no longer used by compose runtime.



<div class='sourceset sourceset-native'>Native</div>


> **Deprecated** MonotonicFrameClocks are not globally applicable across platforms. Use an appropriate local clock.

```kotlin
public actual val DefaultMonotonicFrameClock: MonotonicFrameClock
```


The `MonotonicFrameClock` used by `withFrameNanos` and `withFrameMillis` if one is not present in
the calling `kotlin.coroutines.CoroutineContext`.

This value is no longer used by compose runtime.



<div class='sourceset sourceset-android'>Android</div>


> **Deprecated** MonotonicFrameClocks are not globally applicable across platforms. Use an appropriate local clock.

```kotlin
public actual val DefaultMonotonicFrameClock: MonotonicFrameClock
```


<div class='sourceset sourceset-js'>Js</div>


> **Deprecated** MonotonicFrameClocks are not globally applicable across platforms. Use an appropriate local clock.

```kotlin
public actual val DefaultMonotonicFrameClock: MonotonicFrameClock
```


The `MonotonicFrameClock` used by `withFrameNanos` and `withFrameMillis` if one is not present in
the calling `kotlin.coroutines.CoroutineContext`.

This value is no longer used by compose runtime.



