Created
March 30, 2019 00:06
-
-
Save aimtiaz11/3a2299e2ee5ac6b81177e91923fa67b3 to your computer and use it in GitHub Desktop.
Groovy Code Execution Time
This file contains hidden or 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
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