I don't know about a function, unless the function is doing something to time itself.... but, if you are on a UNIX box, you can get information about a process using 'ps'.
If you know the processID of the process your interested in....
ps -fp [processID]
If you don't know the processID, this will give a list of the processes returned by ps that contain the name of the process (program).....
ps -ef |grep nameOfProgram
note also, that if you are looking for the process for the program you are running, $$ contains the processID.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.