Display build time in minutes and seconds
Tell us about your request For long-running Docker builds, it might be worth showing elapsed time in minutes and seconds instead of only seconds.
Which service(s) is this request for?
This was with sudo docker buildx build. Not sure if it'd apply to Docker Compose too.
Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard? It would be helpful for giving me a better sense of how long my build has been running for, especially when using Docker on slower devices and/or with larger builds. Doing it now isn't hard (see the next question), but it might be a bit more convenient.
Are you currently working around the issue?
The workaround is just taking the listed time and dividing it by sixty. This does work, but I'd personally prefer it built-in, even if it's behind a flag (like rsync's --human-readable flag).
A basic Python workaround would be along the lines of f"{n // 60:.0f}m {n % 60}s", although if this is worthwhile, I'd be inclined to suggest only displaying minutes if it's above 59.9s to avoid 0m 12s.
Additional context Here's a snippet of what I'm referring to (right column omitted)
[+] Building 1061.5s (19/29)
...
I'd prefer something like this:
[+] Building 17m 41.5s (19/29)
...