title: How to get end of process time per processor using "pool" in Python?
body: <p>I use Multiprocessing library in Python to distribute a function over multiple cores. To do that I use "Pool" function, but I want to know when each processor has completed its work. </p>
  
  <p>Here is the code :</p>
  
  <pre><code>def parallel(m,G):
  
     D=0
     for i in xrange(G):
          D+=random() 
  
     return 1*(D&lt;1)
  
  pool=Pool()
  
  TOTAL=0
  for i in xrange(10): 
      TOTAL += sum(pool.map(partial(parallel,G=2),xrange(100)))
  print TOTAL
  </code></pre>
  
  <p>I know how to use time.time() in normal situation, but what I need is to know when each core has completed is part of the job. If I put a time stamp directly in the function I will get many time values without knowing on what core it is processed.</p>
  
  <p>Any advice is welcome!</p>