[MBS] [ANN] 15.3pr4

2015-09-22 Thread Christian Schmitz
Hi, * Changed DarwinResourceUsageMBS.SystemTimeUsed and DarwinResourceUsageMBS.UserTimeUsed to doubles. * Added ShowDifferences function for DynaPDFMBS class. * Added MimeEmailMBS.HTMLToPlainText function used to get plain text from html-only emails.. * Fixed bug in PHP plugin which caused crash

Re: [MBS] CPU use on OS X and Windows

2015-09-22 Thread Christian Schmitz
> Am 22.09.2015 um 17:36 schrieb Michael Diehr : > >> I think DarwinResourceUsageMBS is for your app. > > Hmm - testing the "Darwin Resource Usage" sample project however, I get "0" > for System Time used and UserTimeUsed, which doesn't seem very useful for > calculating real-time CPU usage.

Re: [MBS] CPU use on OS X and Windows

2015-09-22 Thread Michael Diehr
> I think DarwinResourceUsageMBS is for your app. Hmm - testing the "Darwin Resource Usage" sample project however, I get "0" for System Time used and UserTimeUsed, which doesn't seem very useful for calculating real-time CPU usage. Correction, after a while UserTimeUsed rises to 1 and then 2

Re: [MBS] CPU use on OS X and Windows

2015-09-22 Thread Christian Schmitz
> > For Cocoa, I see DarwinVMStatisticsMBS but I'm not clear if that's > per-process or global? DarwinVMStatisticsMBS is global. I think DarwinResourceUsageMBS is for your app. > For Win32, should I use WindowsProcessStatisticsMBS? Is it per-process or > global? If you pass ProcessID it's f

[MBS] CPU use on OS X and Windows

2015-09-22 Thread Michael Diehr
Related question: How do i get the CPU usage, for the current process only, on Cocoa and Win32. I'd like to get the same value that shows up in Activity Monitor's CPU% column, and for windows Task Manager. I'm only interested in the CPU usage for the currently running process. For Cocoa, I se