Very small performance-relate change: just calling System.nanoTime() if
actually using it.