Hey all, does anyone have a good suggestion on how to measure execution time and log the duration in a finally block?
Is this only achievable explicitly like the following?
Copy code
val startTime = System.currentTimeMillis()
try {
<some code>
} finally {
val duration = Duration.ofMillis(System.currentTimeMillis() - startTime)
}