progress: simplify performance measurement by using getnanotime()