Fix issue #84

Use System.nanoTime instead of System.currentTimeMillis.