benchmarkConnection
suspend fun benchmarkConnection(peripheral: Peripheral, options: ConnectionOptions = ConnectionOptions()): BenchmarkResult
Measure the time to connect to a peripheral.
Starts timing before Peripheral.connect, stops when the connection state reaches com.atruedev.kmpble.peripheral.state.State.Connected.
Return
BenchmarkResult with elapsed connection time.
Parameters
peripheral
The peripheral to connect to (must be disconnected).
options
Connection configuration.