How to measure CPU runtime? Constantly getting 0

I see, thank you again for the response; it is a shame there is no good method for the standalone program.