comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » anything more accurate than systime() ?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
anything more accurate than systime() ? [message #33069] Fri, 06 December 2002 14:42 Go to next message
Sean Raffuse is currently offline  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 Go to previous message
David Fanning is currently offline  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 Go to previous message
R.G. Stockwell is currently offline  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
>
>
>
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: New user - can't get Meta-tab to work on OS X
Next Topic: Re: Issues with IDL 5.6 OS X and OroborOSX-v0.8 beta 2

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 14:52:09 PDT 2025

Total time taken to generate the page: 0.00466 seconds