# PerformanceTestCase.Intermediates

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# Intermediates

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/test/PerformanceTestCase.Intermediates "View this page in Java")  

```
interface Intermediates
```

|--------------------------------------------------------------------------------------------------------------------------------------------------|
| [android.test.PerformanceTestCase.Intermediates](https://developer.android.com/reference/kotlin/android/test/PerformanceTestCase.Intermediates#) |

*** ** * ** ***

| **This interface was deprecated in API level 29.**
|
| Deprecated in Java.

Callbacks for[PerformanceTestCase](https://developer.android.com/reference/kotlin/android/test/PerformanceTestCase).

## Summary

|                                                                                                                                                                                                                     Public methods                                                                                                                                                                                                                     ||
|--------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| abstract[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [addIntermediate](https://developer.android.com/reference/kotlin/android/test/PerformanceTestCase.Intermediates#addIntermediate(kotlin.String))`(`name:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` <br />                                                                                                            |
| abstract[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [addIntermediate](https://developer.android.com/reference/kotlin/android/test/PerformanceTestCase.Intermediates#addIntermediate(kotlin.String,%20kotlin.Long))`(`name:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`, `timeInNS:` `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`)` <br /> |
| abstract[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [finishTiming](https://developer.android.com/reference/kotlin/android/test/PerformanceTestCase.Intermediates#finishTiming(kotlin.Boolean))`(`realTime:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` <br />                                                                                                            |
| abstract[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [setInternalIterations](https://developer.android.com/reference/kotlin/android/test/PerformanceTestCase.Intermediates#setInternalIterations(kotlin.Int))`(`count:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` <br />                                                                                                         |
| abstract[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [startTiming](https://developer.android.com/reference/kotlin/android/test/PerformanceTestCase.Intermediates#startTiming(kotlin.Boolean))`(`realTime:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` <br />                                                                                                              |

## Public methods

### addIntermediate

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
abstract fun addIntermediate(name: String!): Unit
```

**Deprecated:** *Deprecated in Java.*  

### addIntermediate

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
abstract fun addIntermediate(
    name: String!, 
    timeInNS: Long
): Unit
```

**Deprecated:** *Deprecated in Java.*  

### finishTiming

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
abstract fun finishTiming(realTime: Boolean): Unit
```

**Deprecated:** *Deprecated in Java.*  

### setInternalIterations

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
abstract fun setInternalIterations(count: Int): Unit
```

**Deprecated:** *Deprecated in Java.*  

### startTiming

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
abstract fun startTiming(realTime: Boolean): Unit
```

**Deprecated:** *Deprecated in Java.*