multiprocessing and process run time
thomas.robitaille at gmail.com
Fri Jun 19 10:40:11 EDT 2009
I'm making use of the multiprocessing module, and I was wondering if there
is an easy way to find out how long a given process has been running for.
For example, if I do
import multiprocessing as mp
p = mp.Process(target=time_waster)
Is there a way that I can then find how long p has been running for? I
figured I can use p.pid to get the PID of the process, but I'm not sure
where to go from there. Is there an easy way to do this?
View this message in context: http://www.nabble.com/multiprocessing-and-process-run-time-tp24112854p24112854.html
Sent from the Python - python-list mailing list archive at Nabble.com.
More information about the Python-list