Python mutliprocessing: Timestamp of a process
Question: I am using python multiprocessing module. I need to see the timestamp at which
a process starts and the timestamp at which a process ends. If I do this:

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

It only prints process number and status. How can I print the timestamp?


Answer: **import datetime** module first and then you can print the timestamp

