Package com.mendix.metrics
Interface Timer
- All Superinterfaces:
Metric
Timers record elapsed time.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.mendix.metrics.Metric
Metric.Builder<M extends Metric>
-
Method Summary
-
Method Details
-
record
Records elapsed time.- Parameters:
amount
- elapsed timeunit
- elapsed time unit
-
record
Executes given function and records execution time.- Type Parameters:
T
- parameter type of the function- Parameters:
func
- function to execute- Returns:
- returning value from the function
-