diff --git a/core/src/main/kotlin/com/r3corda/core/Utils.kt b/core/src/main/kotlin/com/r3corda/core/Utils.kt index ba6edf8d29..68ebed813f 100644 --- a/core/src/main/kotlin/com/r3corda/core/Utils.kt +++ b/core/src/main/kotlin/com/r3corda/core/Utils.kt @@ -114,7 +114,9 @@ fun Iterable.noneOrSingle(): T? { // An alias that can sometimes make code clearer to read. val RunOnCallerThread = MoreExecutors.directExecutor() -inline fun logElapsedTime(label: String, logger: Logger? = null, body: () -> T): T { +// TODO: Add inline back when a new Kotlin version is released and check if the java.lang.VerifyError +// returns in the IRSSimulationTest. If not, commit the inline back. +fun logElapsedTime(label: String, logger: Logger? = null, body: () -> T): T { val now = System.currentTimeMillis() val r = body() val elapsed = System.currentTimeMillis() - now