From running time over my program I've got:
real 4m41.679s user 20m58.623s sys 0m49.471s
What does this output means? What is real and what is user?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
help time in bash gives:
time: time [-p] pipeline Report time consumed by pipeline's execution. Execute PIPELINE and print a summary of the real time, user CPU time, and system CPU time spent executing PIPELINE when it terminates.
man 7 time give a description of
user CPU and
system CPU time:
Real time is defined as time measured from some fixed point (e.g., the start) in the life of a process (elapsed time).
User CPU time is the time spent executing code in user mode. System CPU time is the time spent by the kernel executing in system mode on behalf of the process (e.g., executing system calls).