Last active
January 12, 2017 16:52
-
-
Save abelsromero/65b74ad5038f5f222bb336b359f97ce1 to your computer and use it in GitHub Desktop.
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
| public class MemoryConsumer { | |
| public static void main(String[] args) { | |
| long seconds = 30000; | |
| long start = System.currentTimeMillis(); | |
| Long sillyCounter = 0l; | |
| while (start + seconds > System.currentTimeMillis()) | |
| sillyCounter++; | |
| System.out.println("Counter: " + sillyCounter); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment