/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package doktorseventest;

/**
 *
 * @author ink
 */
public class Main {

    public static int a;
    public static int b;
    
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        int limit = Integer.parseInt(args[0]);
        System.out.println("Iterations = " + limit);
        a = 32768;
        long time = System.currentTimeMillis();
        for (int i=0; i<limit; i++) {
            b = a/2;
        }
        System.out.println("Division test = " + (System.currentTimeMillis() - time));
        time = System.currentTimeMillis();
        for (int i=0; i<limit; i++) {
            b = a >> 2;
        }
        System.out.println("Bitwise test = " + (System.currentTimeMillis() - time));
    }

}
