# | Line 32 | Line 32 | public class DequeBash { | |
---|---|---|
32 | static int random(int bound) { | |
33 | return (random() & 0x7fffffff) % bound; | |
34 | } | |
35 | < | |
35 | > | |
36 | public static void main(String[] args) throws Exception { | |
37 | Class<?> cls = Class.forName(args[0]); | |
38 | long startTime = System.nanoTime(); | |
# | Line 48 | Line 48 | public class DequeBash { | |
48 | long now = System.nanoTime(); | |
49 | long elapsedTimeMillis = (now - startTime) / (1000L * 1000L); | |
50 | System.out.printf("\ntotal time %d ms\n", elapsedTimeMillis); | |
51 | < | |
51 | > | |
52 | } | |
53 | ||
54 | static void mainTest(Deque<Integer> deque, int n) throws Exception { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |