[Matplotlib] Best way to use the time

I'm recording live data and I want to record at the same moment the
time (to plot MyData Vs Time). Do you know the bast way to do it
because it exists a lot of different classes for that?

Fabien