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

Home » Public Forums » archive » Re: how to get time consumed by idl program?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: how to get time consumed by idl program? [message #32375 is a reply to message #32373] Sat, 05 October 2002 06:05 Go to previous message
Ralf Flicker is currently offline  Ralf Flicker
Messages: 19
Registered: October 2001
Junior Member
Wayne Dou wrote:
>
> i am a beginner of idl, and i am anxious to compare idl with other
> softwares such as matlab, but i don't know how to calculate the time
> idl program used to complete a task, i am wondering if there is a
> function to do the job.

A simple way to clock something specific is to use the "systime"
function, for instance:

t0 = systime(1)
; code your process here
t1 = systime(1)
elapsed = t1-t0

There are IDL benchmarking routines (time_test2.pro) that can
gauge the performance of IDL on different computers, but I don't
know how useful that is for comparing with different programs (I
don't know what Matlab might have implemented). I alway write my
own benchmarking code to test a few specific operations like I
showed above (for instance FFTs, matrix multiplications, splines
and interpolations etc).

I actually have a question to the same effect as yours, but
concerning Yorick, so I'll post that in a separate thread.


ralf
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: how to get time consumed by idl program?
Next Topic: Got my code into IDL 5.6!

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

Current Time: Sat Oct 11 06:13:41 PDT 2025

Total time taken to generate the page: 1.43935 seconds