We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c61332 commit b4c2757Copy full SHA for b4c2757
1 file changed
make.py
@@ -151,16 +151,20 @@ def run(args: str | list[str], cd: PathLike | None = None) -> None:
151
result = subprocess.run(args)
152
else:
153
154
-
+
155
elapsed_time = time.perf_counter() - start_time
156
h, rem = divmod(elapsed_time, 3600)
157
m, s = divmod(rem, 60)
158
159
- time_str = " ".join(part for part in [
160
- f"{int(h)}h" if h >= 1 else "",
161
- f"{int(m)}m" if m >= 1 or h >= 1 else "",
162
- f"{int(s)}s"
163
- ] if part)
+ time_str = " ".join(
+ part
+ for part in [
+ f"{int(h)}h" if h >= 1 else "",
+ f"{int(m)}m" if m >= 1 or h >= 1 else "",
164
+ f"{int(s)}s",
165
+ ]
166
+ if part
167
+ )
168
169
print(f">> Command finished ({time_str}): {cmd} \n")
170
0 commit comments