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 histogram:Histogram = ... val res = histogram.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 histogram:Histogram = ... val fut = histogram.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 seen by the implicit unit visible to this class.
Record the duration in the unit as set by seen by the implicit unit visible to this class.
The duration to register
itself
1.0
(Since version ) see corresponding Javadoc for more information.
Class with extensions for the
Histogramclass1.0