All tools inherit "Dependency".

This commit is contained in:
derv82
2018-04-21 11:34:30 -04:00
parent 1083db6f88
commit 0adcd55742
12 changed files with 83 additions and 16 deletions

View File

@@ -24,6 +24,9 @@ class Timer(object):
@staticmethod
def secs_to_str(seconds):
'''Human-readable seconds. 193 -> 3m13s'''
if seconds < 0:
return '-%ds' % seconds
rem = int(seconds)
hours = rem / 3600
mins = (rem % 3600) / 60