return stop - start;
}
long measureLinkedListQueue() throws Exception {
LinkedListQueue q=new LinkedListQueue();
long start, stop;
start=System.currentTimeMillis();
for(int i=0; i < num_elements; i++) {
if(i % 2 == 0)
q.add(new Integer(i));
else
q.addAtHead(new Integer(i));
}
while(q.size() > 0)
q.remove();
stop=System.currentTimeMillis();
return stop - start;
}