For some of our build targets such as buildworld, buildkernel etc. we log the real time in seconds how the build runs. It would be great if we log the user and system time as well.
Right now you have to run: time make buildworld
to get the user/system time.
With this patch the time command would run inside src/Makefile for most targets. Example output:
make buildkernel
Time spent on target buildkernel: real 2.81 user 22.72 sys 31.71
make buildworld
Time spent on target buildworld: real 65.00 user 242.64 sys 96.59
some targets calls other targets, so you will see them all:
make packages
Time spent on target distributekernel: real 18.58 user 10.78 sys 13.37
Time spent on target stagekernel: real 18.63 user 10.84 sys 13.46
Time spent on target stageworld: real 104.16 user 141.38 sys 102.14
Time spent on target real-packages: real 597.63 user 2190.64 sys 195.80
Time spent on target packages: real 597.73 user 2191.45 sys 196.76
Tested on FreeBSD and MacOS. It should work on Linux as well.