What is best method to measure execution time of Android code snippet?
I have a section of code before and after which I want to place timestamps to find out it\'s e
Kotlin Developers
To get the elapsed time in MilliSeconds:
val elapsedTime= measureTimeMillis { // call you method from here or add any other statements }
To get the time in NanoSeconds:
val elapsedTime= measureNanoTime { // call you method from here or add any other statements }