Created
November 20, 2013 16:52
-
-
Save dedunumax/7566654 to your computer and use it in GitHub Desktop.
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
public class Variable03 { | |
public static void main(String[] args) { | |
long startTime = System.nanoTime(); | |
Method(); | |
long endTime = System.nanoTime(); | |
long duration = endTime - startTime; | |
System.out.println("Method runtime : " + duration + " ms"); | |
} | |
public static void Method() { | |
for (int i = 0; i < 100000; i++) { | |
int str; | |
// Some Logic | |
str = i; | |
System.out.println(str); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment