-
public final class BugsnagPerformanceKt
-
-
Method Summary
Modifier and Type Method Description final static <R extends Any> RmeasureSpan(String name, Function0<R> block)A utility method for Kotlin apps which compliments the standard Kotlin measureTime,measureTimeMillis, andmeasureNanoTimemethods.-
-
Method Detail
-
measureSpan
final static <R extends Any> R measureSpan(String name, Function0<R> block)
A utility method for Kotlin apps which compliments the standard Kotlin
measureTime,measureTimeMillis, andmeasureNanoTimemethods. This method has the same behaviour as:BugsnagPerformance.startSpan(name).use { block() }- Parameters:
name- the name of the block to measureblock- the block of code to measure the execution time
-
-
-
-