Use System.nanoTime() as System.currenTimeMillis() can be screwed with clock adjustment etc