PerformanceDeadline

Monotonic preparation/execution budget, independent of timed sample distributions. Child sections retain an earlier enclosing deadline, including one that has already expired.

Constructors

Link copied to clipboard
constructor(timeoutMillis: Long)

Starts one nonnegative budget on the JDK monotonic clock; oversized durations fail before acquisition.

Functions

Link copied to clipboard
fun child(timeoutMillis: Long): PerformanceDeadline

Starts a section whose own budget cannot extend this enclosing suite's deadline.

Link copied to clipboard

Captures whole-suite elapsed time, including preparation and cleanup rather than sample timing.

Link copied to clipboard

Checks relative order across nano-time wrap, allowing the exact terminal instant.