elapsed重命名为elapse

This commit is contained in:
Jing Ling
2020-02-29 20:38:41 +08:00
parent 98762cbfa2
commit f213a93a32
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ class Collect(object):
"""
def __init__(self, domain, export=True):
self.domain = domain
self.elapsed = 0.0
self.elapse = 0.0
self.modules = []
self.collect_funcs = []
self.path = None
@@ -87,7 +87,7 @@ class Collect(object):
self.path = config.result_save_dir.joinpath(name)
dbexport.export(self.domain, path=self.path, format=self.format)
end = time.time()
self.elapsed = round(end - start, 1)
self.elapse = round(end - start, 1)
if __name__ == '__main__':