Fix issue #84

Fix issue #84-

Use System.nanoTime instead of System.currentTimeMillis.