Change of velocity and ergodicity in flows and in Markov semi-groups