ps issue

I want to find out how much percentage of CPU time are used by processes using ps ( is there any other posibility ? ) top utility show this information too.It seems that i need to set UNIX95 environment variable to use to use the XPG4 behavior of ps. I don't know to what value to set this environment Any clues ?