Change timing code to use nanoTime

Signed-off-by: Joe Buck <jbbuck@gmail.com>