Time Stamp
Time Stamp
I'm wondering if there's some way I can get NEURON to return a time stamp when I'm running a simulation. Thanks!
-
- Site Admin
- Posts: 6305
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
- Contact:
Re: Time Stamp
By "time stamp" do you mean an indicator of progress? If so, do you mean "value of t"?
Re: Time Stamp
I'm interested in getting the current real time.
I tried pc.time() but that did not work. I need to calculate the real it takes to run a simulation.
Also I run simulations and start reading news and impulse buy from Amazon, so how can I make play a sound at the end of the simulation?
I tried pc.time() but that did not work. I need to calculate the real it takes to run a simulation.
Also I run simulations and start reading news and impulse buy from Amazon, so how can I make play a sound at the end of the simulation?
-
- Site Admin
- Posts: 6305
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
- Contact:
Re: Time Stamp
You don't need the "current real time." You only need a stopwatch function. Read about startsw()psychic wrote:I'm interested in getting the current real time.
I tried pc.time() but that did not work. I need to calculate the real it takes to run a simulation.
http://www.neuron.yale.edu/neuron/stati ... ml#startsw
This used to work, I think, but it doesn't do anything on my 1 year old desktop machine--Also I run simulations and start reading news and impulse buy from Amazon, so how can I make play a sound at the end of the simulation?
Code: Select all
CTRLG = 7 // ASCII code for ^G or "bell" character
strdef foo
sprint(foo,"%c",CTRLG)
print foo