Python mutliprocessing: Timestamp of a process -


i using python multiprocessing module. need see timestamp @ process starts , timestamp @ process ends. if this:

    ...     processes = [process(target=topo.func1, args=(host,servers,q)) x in range(1,i)]     p in processes:      p.start()      print p       <process(process-1, started)>       p.join()      print p      <process(process-1, stopped)>  

it prints process number , status. how can print timestamp?

import datetime module first , can print timestamp


Comments

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -