How to measure user/system cpu time for a piece of program?

In linux shell, using “time [executable file]” this command to review the cpu time of user/system. $ time myprog real 0m2.792s user 0m0.099s sys 0m0.200s … Continue reading How to measure user/system cpu time for a piece of program?