use nanotime to record latency, now that precision is actually useful through the histogram.