Mac os cputime

Hi,

How can i get cputime of the running proceses

Ty.

Do you use MBS Xojo Plugins?

Then you could use DarwinResourceUsageMBS class.
Also DarwinVMStatisticsMBS class can give stats for whole machine.

i tried DarwinVMStatisticsMBS. cputime returns always 0

They return deltas.
Did you check “CPU load info” example?

i need process by process list with cpu usage

like “ps -xco %cpu,command” output

you may run that command via shell class and parse the output.