Mattias Gaertner wrote:
> Al Boldi <[EMAIL PROTECTED]> wrote:
> > 于野 wrote:
> > > I'm a Chinese OIer(which is short for someone who has intersts in
> > > 'Olympiad in Informatics'). Now I'm using Lazarus to debug. but
> > > every time when I want to know how much time it spend during the
> > > program runs, I have to add something like this: var
> > > ta,tb:Tsystemtime; begin
> > >   datetimetosystemtime(now,ta);
> > >   ........
> > >   ........
> > >   datetimetosystemtime(now,tb);
> > >   writeln(....);
> > > end.
> > > It's so boring.
> >
> > I got bored too, so I wrote TElapsed.
>
> Did you try 'time' and gprof (Linux, MacOSX and FreeBSD)?

time is good for timing total elapsed time.

gprof is good for timing function calls.

TElapsed is good for timing inline code segments.


Thanks!

--
Al

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to