$ time foo
real 0m0.003s
user 0m0.000s
sys 0m0.004s
$
What do \'real\', \'user\' and \'sys\' mean in the output of time?
• real: The actual time spent in running the process from start to finish, as if it was measured by a human with a stopwatch
• user: The cumulative time spent by all the CPUs during the computation
• sys: The cumulative time spent by all the CPUs during system-related tasks such as memory allocation.
Notice that sometimes user + sys might be greater than real, as multiple processors may work in parallel.