How to test running time of a process

Hi.
I’m testing the running time of flash player(phflash) on several kinds
of computers with QNX6.1.0. I found that command “pidin” and “sin” can tell
me the user time and system time of a process.when i use these command on
one of my testing computer which has the slowest CPU , i get a very strange
result.
When i use command “sin cpu”, i get the result of the phflash process
like this:
user time:0
system time :155
when i use “pidin times”, the result like this:
user time:0.000
system time :0.155
but it’s impossible, because the flash have run for over 10 seconds.I
have tested several other flashes with different length on this computer,
the results are similar, the user time are too short.
I also test these flashes on other faster computers, the results are
reasonable.
Who can tell me what happens on this strange computer?
And what is the unit of user time and system time?
Does somebody have better methods to test running time of a flash?

gao jie <jiegi@public.wh.hb.cn> wrote:

Hi.
I’m testing the running time of flash player(phflash) on several kinds
of computers with QNX6.1.0. I found that command “pidin” and “sin” can tell
me the user time and system time of a process.when i use these command on
one of my testing computer which has the slowest CPU , i get a very strange
result.
When i use command “sin cpu”, i get the result of the phflash process
like this:
user time:0
system time :155
when i use “pidin times”, the result like this:
user time:0.000
system time :0.155
but it’s impossible, because the flash have run for over 10 seconds.I
have tested several other flashes with different length on this computer,
the results are similar, the user time are too short.
I also test these flashes on other faster computers, the results are
reasonable.
Who can tell me what happens on this strange computer?
And what is the unit of user time and system time?
Does somebody have better methods to test running time of a flash?

Try using the time utility as follows:

$ time my_app

This will return the real time, the user time and the system time.

Barry