simplify calculation of write duration
publish last write duration as metric