def timeCost(self, t_start):
t_now = time.time()
m, s = divmod(t_now-t_start, 60)
h, m = divmod(m, 60)
return "%02d:%02d:%02d" % (h, m, s)
Python seconds are converted to hours, minutes and seconds
Guess you like
Origin blog.csdn.net/ao1886/article/details/114443636
Recommended
Ranking