When I run `make buildkernel' the makefile display the start end completed time: >>> Kernel build for GENERIC started on Sun Dec 17 20:37:08 UTC 2017 [...] >>> Kernel build for GENERIC completed on Sun Dec 17 20:39:14 UTC 2017 but wouldn't it be great if the makefile display the build time in seconds? E.g.: >>> Kernel build for GENERIC in 125 seconds, ncpu: 32, make -j27 (incl. number of CPUs and the make -j flags)
Created attachment 188938 [details] makefile patch
Comment on attachment 188938 [details] makefile patch Shouldn't buildworld get the same treatment?
Created attachment 188975 [details] makefile patch here is a better patch. It will display the correct value if you do not use make -j
Created attachment 188976 [details] patch for buildworld
Note: the build time in seconds does not contain the time spend in `make clean' and `make obj'. There is a chicken-egg problem here, you need the obj tree first before you can write a temp file. The difference is usually small (<2 seconds), not a big issue.
A commit references this bug: Author: wosch Date: Tue Mar 12 07:40:39 UTC 2019 New revision: 345054 URL: https://svnweb.freebsd.org/changeset/base/345054 Log: `make buildworld' should display the build time in seconds PR: 224433 Reviewed by: emaste, @bdrewery Approved by: cem Differential Revision: https://reviews.freebsd.org/D13911 Changes: head/Makefile.inc1
I was to fast, https://reviews.freebsd.org/D13910 is still open.
A commit references this bug: Author: wosch Date: Sat Mar 16 20:02:58 UTC 2019 New revision: 345238 URL: https://svnweb.freebsd.org/changeset/base/345238 Log: `make buildkernel' should display the build time in seconds PR: 224433 Approved by: cem Differential Revision: https://reviews.freebsd.org/D13910 Changes: head/Makefile.inc1
A commit references this bug: Author: wosch Date: Tue Mar 19 19:58:40 UTC 2019 New revision: 345310 URL: https://svnweb.freebsd.org/changeset/base/345310 Log: Improve english grammar for kernel built time PR: 224433 Approved by: jhb Differential Revision: https://reviews.freebsd.org/D19636 Changes: head/Makefile.inc1