Skip to content

Instantly share code, notes, and snippets.

@myst3k
Last active May 7, 2024 16:28
Show Gist options
  • Save myst3k/346f78e1b204a35ea60212e92117b88a to your computer and use it in GitHub Desktop.
Save myst3k/346f78e1b204a35ea60212e92117b88a to your computer and use it in GitHub Desktop.
Java / Kotlin Time Measurement ToString Friendly
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