log both read and write latencies