def __exit__(self, *args):
"""
Stop timing something and calculate the difference.
Note - the with statement will invoke this automatically.
:param args:
:return:
"""
self.end = time.process_time()
self.interval = self.end - self.start
评论列表
文章目录