Global stability of a continuous-time flow which computes time-optimal switchings