anything more accurate than systime() ? [message #33069] |
Fri, 06 December 2002 14:42  |
Sean Raffuse
Messages: 46 Registered: July 2001
|
Member |
|
|
Hello,
I have a routine that is slooooow. I would like to try and speed it up, but
I don't know where to focus my efforts because I don't know what part of the
process is taking all the time. So, is there a way to see how long each
section takes? I tried using systime at the beginning of each section, but
it only has resolution in seconds! If it matters, I'm on a Windows system.
Thank you,
Sean
|
|
|
Re: anything more accurate than systime() ? [message #33167 is a reply to message #33069] |
Fri, 06 December 2002 15:08  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Sean Raffuse (sean@me.wustl.edu) writes:
> I have a routine that is slooooow. I would like to try and speed it up, but
> I don't know where to focus my efforts because I don't know what part of the
> process is taking all the time. So, is there a way to see how long each
> section takes? I tried using systime at the beginning of each section, but
> it only has resolution in seconds! If it matters, I'm on a Windows system.
I think what you want is the PROFILER command.
That will show you what is taking all the time.
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|
Re: anything more accurate than systime() ? [message #33168 is a reply to message #33069] |
Fri, 06 December 2002 14:51  |
R.G. Stockwell
Messages: 363 Registered: July 1999
|
Senior Member |
|
|
windows machines don't have high precession (or at least they
didn't use to). I doubt you can get past 10ms.
I suggest taking the components and looping a few thousand times.
Cheers,
bob
Sean Raffuse wrote:
> Hello,
>
> I have a routine that is slooooow. I would like to try and speed it up, but
> I don't know where to focus my efforts because I don't know what part of the
> process is taking all the time. So, is there a way to see how long each
> section takes? I tried using systime at the beginning of each section, but
> it only has resolution in seconds! If it matters, I'm on a Windows system.
>
> Thank you,
>
> Sean
>
>
>
|
|
|