Never use time.time() to measure time intervals

This function is to be used to get local time only: nobody can say whether ntpd 
won’t adjust it next second, ntpdate will shift it by a few centuries or any 
such thing. There is time.clock() for measuring time intervals.