Re: Tiny typo in Manual
- Posted by Jeremy Cowgar Jul 14, 2008
- 920 views
jeremy@cowgar:~$ time exu test1.e 200000000 real 0m1.016s user 0m0.924s sys 0m0.004s jeremy@cowgar:~$ time exu test2.e 200000000 real 0m0.693s user 0m0.688s sys 0m0.004s
I don't understand what (real, user, sys) represent. You only have one print statement in each program. Where would these values be coming from?
The actual command is prefixed with time which is standard on unix systems. time launches the program given to it on the command line and times it's execution and outputs the information above you see. This is important in doing benchmarks because it counts not just execution time, but load time and parse time. In the above test parse time was something that is important. If I were to do timing in the actual source code, then those timers would not start until all parsing was completed. Not to mention, time is so easy to use.
I do not think Windows has a similar command, does it? It would be nice for testing.
Jeremy