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 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 function returning a Future which to measure
The future created from the provided function block
1.0
Record the duration in the unit as set by setDefaultUnit.
Record the duration in the unit as set by setDefaultUnit.
The duration to register
itself
1.0
(Since version ) see corresponding Javadoc for more information.
Class with extensions for the
Summary.Childclass1.0