On Jan 14, 6:18 pm, cplusplusquest...@gmail.com wrote:
> # time ./a.out test.data
>
> the output:
>
> real 0m49.172s
> user 0m5.638s
> sys 0m4.850s
>
> Why real time and user time have big difference? I've tried to change
> a code: for example disable print() function, the real time and user
> time closer. How to improve the real time in a program?
http://www.google.com/search?hl=en&q...=Google+Search
The first result would probably be a good place to start.
I wouldn't do anything without a profiler though.