On Fri, May 24, 2013 at 9:17 AM, Aeronaelius wrote: > Dear Spyder developers, > > I am a very satisfied user of the Spyder IDE. It looks great and works > even better. I use it for all my larger Python assignments and projects. I > also greatly enjoy the embedded profiler and pylint. Really superb! > > I would however like to propose one minor modification which would greatly > simplify testing for run-times. Currently the "show elapsed time" gives us > the time since a Python interpreter was started. If I run a script with > Spyder I need to remember at which time I pressed F5 and I need to be there > when the script finishes to know the exact amount of time it took to run > the entire script. I would like to see the "show elapsed time" option > modified such that it works like a stopwatch: start from t = 0 when F5 is > pressed and hold the timer fixed when a script has finished running. > > I know there exist a number of ways to achieve this without modifying the > Spyder IDE (use a Python timing function, or use a bash timing function), > however I consider this to be a nicer way to achieve it. If there any > reasons to reject this proposal I would gladly like to know why and discuss > it if possible. > > Hello, Aeronaelius.
If you set your script to run in its own dedicated interpreter rather than in the current interactive interpreter you can achieve what you are looking for. With your script open in the editor, hit F6. From the Run Settings dialog that appears, chose "Execute in a new dedicated Python interpreter". Close the dialog and hit F5. The timer will now start at F5 hit and stop when the Python interpreter exits. Jed -- You received this message because you are subscribed to the Google Groups "spyder" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/spyderlib?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
