Getting the start time of a new process which I triggered
Question: I am using Multiprocessing module in python and triggering many processes. Is
there a way where I can find out the START TIME of each process that I
triggered?

Since the processes are triggered quickly, I am looking to get the time in
milliseconds or even in nanoseconds to differentiate each process. This is the
piece of code that I have,

    
    
    import multiprocessing
    import time
    
    def myProcess(processName):
        print "This is a method that will run in parallel: processName"
        time.sleep(120)
    
    num = 100
    
    for n in range(1,num):
        processName = "Process %s" % n
        proc = multiprocessing.Process(target=myProcess,args=(processName))
        proc.start()
        proc.join()
    
    print "process startTime: %s " ?????
    


Answer: Don't do that. `multiprocessing.Process` objects have a `pid` attribute -- the
process ID, which is the process's unique identifier _at the OS level_. Use
that instead.

