Skip to content

Instantly share code, notes, and snippets.

@aimtiaz11
Created March 30, 2019 00:06
Show Gist options
  • Save aimtiaz11/3a2299e2ee5ac6b81177e91923fa67b3 to your computer and use it in GitHub Desktop.
Save aimtiaz11/3a2299e2ee5ac6b81177e91923fa67b3 to your computer and use it in GitHub Desktop.
Groovy Code Execution Time
long startTime = System.nanoTime()
// write some code
long endTime = System.nanoTime()
long duration = endTime - startTime
println("Code executiont ime: " + duration)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment