Time evolution of mass flows in a collisional tokamak