measure time spent on main memory access