---
title: "advanceEventTime"
description: "Adds the given [durationMillis] to the current event time, delaying the next event by that time.
Only valid when a gesture has already been started, or when a finished gesture is resumed."
type: "function"
---

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


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


> **Deprecated** Replaced by TouchInjectionScope. Use `performTouchInput` instead of `performGesture`

```kotlin
@ExperimentalTestApi
fun GestureScope.advanceEventTime(durationMillis: Long) =
    delegateScope.touch { advanceEventTime(durationMillis) }
```


Adds the given `durationMillis` to the current event time, delaying the next event by that time.
Only valid when a gesture has already been started, or when a finished gesture is resumed.



