Changed the iteration time to nanoTime() from  currentTimeMillis();