print (datetime.datetime.now()) import time as tm
t1 = tm.time().......................
t2 = tm.time()
print "==========total take {0}".format(t2 - t1)
print (datetime.datetime.now()) import time as tm
t1 = tm.time().......................
t2 = tm.time()
print "==========total take {0}".format(t2 - t1)