Discussion: Program Running Time
Afficher un message
Vieux 15/01/2008, 04h44   #3
jonnyothan@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Program Running Time

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.
  Réponse avec citation
 
Page generated in 0,04613 seconds with 9 queries