import eta import datetime from random import randrange ct=0 arr = [] limit = 1000000 interval = 1 finished = 0 last_time = 0 start = datetime.datetime.now() while ctNone: print timevars[0],timevars[1],timevars[2],timevars[3] last_time = timevars[4] finished=1 timevars = eta.ETAbyTime(ct,limit,interval,start,finished,last_time) print 'Total count: '+str(timevars[0]) + '; Total time: '+str(timevars[1])