Connecting Tech Pros Worldwide Forums | Help | Site Map

question about gprof

Yan Yang
Guest
 
Posts: n/a
#1: Nov 13 '05
Hi,

I have a program and I want to test its execution time. When I run the
program, I can feel it runs about 4 mins, but the gprof only says the
accumlated time is 7.2 secs.

Then I use the command: "date; my program; date" and from the time
difference, I got the time 287 seconds?

I am really confused about these two numbers. Why gprof only accumlated 7.2
secs?

Thanks.

Yan




Emmanuel Delahaye
Guest
 
Posts: n/a
#2: Nov 13 '05

re: question about gprof


In 'comp.lang.c', "Yan Yang" <yangyan@usc.edu> wrote:
[color=blue]
> I have a program and I want to test its execution time. When I run the
> program, I can feel it runs about 4 mins, but the gprof only says the
> accumlated time is 7.2 secs.[/color]

1st off-topic post

--
-ed- emdelYOURBRA@noos.fr [remove YOURBRA before answering me]
The C-language FAQ: http://www.eskimo.com/~scs/C-faq/top.html
<blank line>
FAQ de f.c.l.c : http://www.isty-info.uvsq.fr/~rumeau/fclc/
Closed Thread


Similar C / C++ bytes