Created
April 25, 2015 01:14
-
-
Save buchgr/ca777e3cd3c7d6820f99 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
long start = System.nanoTime(); | |
int i = 0; | |
while (i < 10000) { | |
LockSupport.parkNanos(1); | |
i++; | |
} | |
long end = System.nanoTime(); | |
System.out.println((end - start) / 10000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment