TestCputimeSource

class TestCputimeSource(testClocks: <Error class: unknown class><CputimeSource.CpuClockId, CputimeSource.CputimeClock> = arrayOf( PROCESS_CPUTIME to TestCputimeClock { 2L }, THREAD_CPUTIME to TestCputimeClock { 1L }, )) : CputimeSource(source)

Constructors

Link copied to clipboard
constructor(vararg testClocks: <Error class: unknown class><CputimeSource.CpuClockId, CputimeSource.CputimeClock> = arrayOf( PROCESS_CPUTIME to TestCputimeClock { 2L }, THREAD_CPUTIME to TestCputimeClock { 1L }, ))

Types

Link copied to clipboard
object Companion
Link copied to clipboard
class TestCputimeClock(val isSupported: Boolean = true, resolution: Long = 1.milliseconds.inWholeNanoseconds, valueProvider: () -> Long) : CputimeSource.CputimeClock

Functions

Link copied to clipboard