Measures the time it takes to execute the provided block of code.
Measures the time it takes to execute the provided block of code.
val summary:Summary.Child = ... val res = summary.measure{ //code goes here }
The summary to use
The timeunit to use when registering the duration
The block of code to execute/measure
The result created from the provided function block
1.0
Measures the time it takes to execute the provided block of code.
Measures the time it takes to execute the provided block of code.
val summary:Summary = ... val res = summary.measure{ //code goes here }
The summary to use
The timeunit to use when registering the duration
The block of code to execute/measure
The result created from the provided function block
1.0
Measures the time it takes to execute the Future resulting from the provided block of code.
Measures the time it takes to execute the Future resulting from the provided block of code.
val summary:Summary.Child = ... val fut = summary.measureAsync{ Future { //code goes here } }
The summary to use
The timeunit to use when registering the duration
The function returning a Future which to measure
The future created from the provided function block
1.0
Measures the time it takes to execute the Future resulting from the provided block of code.
Measures the time it takes to execute the Future resulting from the provided block of code.
val summary:Summary = ... val fut = summary.measureAsync{ Future { //code goes here } }
The summary to use
The timeunit to use when registering the duration
The function returning a Future which to measure
The future created from the provided function block
1.0
Record the duration in the provided unit.
Record the duration in the provided unit.
The summary to use
The timeunit to use when registering the duration
The duration to register
itself
1.0
Record the duration in the provided unit.
Record the duration in the provided unit.
The summary to use
The timeunit to use when registering the duration
The duration to register
itself
1.0
(Since version ) see corresponding Javadoc for more information.
Holds functions related to 'Summaries'