Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class main {
- public static void main(String[] args) {
- long startTime = System.nanoTime();
- for(int x = 0; x < 1234567890; x++) {
- if (x == 234) {
- }
- }
- long duration = System.nanoTime() - startTime;
- System.out.println("Execution Time: "+duration+" nanoseconds");
- }
- }
Add Comment
Please, Sign In to add comment