TAP5-2333: only query System.nanoTime() if we're going to use the result
avoid more System.nanoTime() calls if we're not going to use the results