Linux – measuring microseconds a process runs in Linux


I'm looking to get the number of microseconds that a process takes to execute. Does anybody know how to do this on a Linux system? (I'm looking for a time value more accurate than milliseconds, because I'm measuring something very sensitive.)

NOTE: I don't think the time command will work to the accuracy I'm looking for… it seems to only go down to milliseconds, which isn't really good enough for my purposes

Best Answer

You should take a look at PAPI. btw, there's a similar question.

Related Question