There is probably an already existing python module for this. I wrote this one to be simple and to learn about wrappers and function decorators. To use, import either gn_timer (for python 3) or ...
When you want to track your focus time using the Pomodoro Technique or measure short breaks, you often find yourself wanting a handy timer. With Python, you can easily create your own simple ...
This code must be run with nrniv -python and not directly via python. The better solution is to use Python's threading module which works regardless of how NEURON is launched. .. method:: ...