Im using time to time a Perl script on standard terminal in Ubuntu 14.04.
I have read that real time is stopwatch time; the time I, as a user, is spending looking at the program running from I start the program until it terminates. But I don't get what user or sys times are. The man page on time is vague, to say the least.
While it is somewhat clear that the real time is split between user and sys it is not clear what they represent.
In my script I'm benchmarking[1] C++ and Perl against each other to see the difference, and I would like to know what data I'm actually getting. An example output is:
real 0m24.198s
user 0m23.120s
sys 0m1.030s
Could someone please elaborate what the default format of time is telling the user? I'm a novice into Linux, so please don't assume too much.
[1] Interestingly, while C++ is way, way faster than Perl in my benchmark with regards to real time, the sys times doesn't differ that much, with C++ actually using more sys time than Perl. This is why I want to know what they mean