[Techtalk] time a process took

Kathryn Hogg kjh at flyballdogs.com
Wed Feb 9 16:15:18 EST 2005

Mary said:
> I don't know of a way to attach something like this to a running
> process.

time strace -p $pid -e trace=none

will give you the wall clock time that it spends running until it exits

You could use a ps before starting the ps to get the start time and then
figure out the end time - start time to calculate how long (wall clock) it
ran for.


More information about the Techtalk mailing list