Last active
May 7, 2024 16:28
-
-
Save myst3k/346f78e1b204a35ea60212e92117b88a to your computer and use it in GitHub Desktop.
Java / Kotlin Time Measurement ToString Friendly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val startTime = Clock.System.now() | |
/// DO STUFF HERE | |
val elapsedTime = Clock.System.now() - startTime | |
println("Execution Time: $elapsedTime seconds") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment