Created
April 4, 2023 10:51
-
-
Save yashb042/5a3ce949412ecf0b2e3bfdf65cdf1077 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 BasicApp { | |
public static void main(String[] args) { | |
long l = System.currentTimeMillis(); | |
for (int i = 0; i < 100_000_000; i++) { | |
} | |
long l2 = System.currentTimeMillis(); | |
System.out.println("Time(in millis) taken to run empty for-loop, 1 Billion iterations - " + (l2 - l)); | |
System.out.println("File end Reached"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment