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

Home » Public Forums » archive » Stop a hanging execution
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: Stop a hanging execution [message #93100 is a reply to message #93093] Wed, 27 April 2016 20:34 Go to previous message
zacharyanorman is currently offline  zacharyanorman
Messages: 17
Registered: July 2015
Junior Member
Your best bet would probably be to use the IDl Workbench and actively press the stop button to see where you get stopped at. Alternatively, and something I use a lot, is placing print statements throughout your code. This really helps me know what processing is going on and gives me an idea of how much processing time I have left.

If you want to track time, then there are a couple of ways you can do this. You can use tic and toc like this, which actually returns the time that has passed in a variable so you can include a control statement in a loop to exit after a certain amount of time:

tic
wait, 2
time = toc()
print, time


Alternatively, you can use systime like this to get the time that has passed in seconds:


t_start = systime(/seconds)
wait, 2
time = systime(/seconds)
print, time - t_start
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Farewell to Paul van Delst
Next Topic: Logical links cause EXPAND_PATH() to hang

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

Current Time: Fri Jul 10 04:57:00 PDT 2026

Total time taken to generate the page: 2.32106 seconds