Look in the /proc tree, that's where the overall and per-process information is stored.
Note however that Linux won't distinguish between CPU time which is handling per-process GUI stuff, and CPU time going to number crunching. Also that some parts of the UI will be handled by the X11 server etc., so probably won't be attributed on a per-process basis.
HTH
MarkMLl