public class ExecutionTimeHelper extends Object
| Constructor and Description |
|---|
ExecutionTimeHelper() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
measureAvrgExecutionTime(String measurementName,
int numberOfRuns,
TimeUnit timeUnit,
java.util.function.Supplier<T> supplier)
Allows to measure the average execution time of a method by wrapping it's call.
|
static <T> T |
measureAvrgExecutionTime(String measurementName,
java.util.function.Supplier<T> supplier)
Allows to measure the average execution time of a method by wrapping it's call.
|
static <T> T |
measureExecutionTime(String measurementName,
java.util.function.Supplier<T> supplier)
Allows to measure the execution time of a method by wrapping it's call.
|
static <T> T |
measureExecutionTime(String measurementName,
TimeUnit timeUnit,
java.util.function.Supplier<T> supplier)
Allows to measure the execution time of a method by wrapping it's call.
|
public static <T> T measureExecutionTime(String measurementName, java.util.function.Supplier<T> supplier)
T - return type of the measured methodmeasurementName - name that allows to distinguish this measurement from otherssupplier - measured methodpublic static <T> T measureAvrgExecutionTime(String measurementName, java.util.function.Supplier<T> supplier)
T - return type of the measured methodmeasurementName - name that allows to distinguish this measurement from otherssupplier - measured methodpublic static <T> T measureExecutionTime(String measurementName, TimeUnit timeUnit, java.util.function.Supplier<T> supplier)
T - return type of the measured methodmeasurementName - name that allows to distinguish this measurement from otherstimeUnit - a time unit to present the resultsupplier - measured methodpublic static <T> T measureAvrgExecutionTime(String measurementName, int numberOfRuns, TimeUnit timeUnit, java.util.function.Supplier<T> supplier)
T - return type of the measured methodmeasurementName - name that allows to distinguish this measurement from othersnumberOfRuns - number of times the measured method should be calledtimeUnit - a time unit to present the resultsupplier - measured methodCopyright © 2002-2020 Atlassian. All Rights Reserved.