Companion
object Companion
Functions
Link copied to clipboard
This JVM's CPU time so far, in seconds.
Link copied to clipboard
fun stopsEarly(seconds: Int, ok: Long, failed: Long, best: Double, failAfterSeconds: Int?, maxErrorRate: Double = DEFAULT_MAX_ERROR_RATE): Boolean
Whether a step that has measured seconds, ok operations done and failed failed so far ends now: with failAfterSeconds set, once it has measured that long, its errors pass maxErrorRate and its throughput is below best, an earlier step's. A step that may yet be the saturation point never ends early.