Subj : Re: CPU Usage To : borland.public.cpp.borlandcpp From : "Billly Pig" Date : Thu Jul 24 2003 09:39 am Scott, The PDH should give you what you need, but it might be a bit more work than is necessary. There is a Windows API call which returns process cputime, but being a bit of a seive-head, I can't remember what it is called. I meant to check up when I was at home last night, but as I said, my memory is not all it could be. I think it is called something like GETPROCESSCPUTIME. If you can't find it, send me a private email to kanep AT waitrose.com and I will look it up for you. Pete K " Bruce Salzman" wrote in message news:3efca1c6@newsgroups.borland.com... > > How do I track CPU usage from within an application. I need to adjust the > > number of times I update the screen per second based on CPU usage. This > can > > vary considerably depending on the graphics card installed. > > > > Is there a component or class I can access for this info? Preferably, I'd > > receive the information in the form of percentage... like the way it is > > described in task manager. > > > > > Scott, > > Check out the performance data helper (PDH) section of the Windows SDK help > file. > > HTH, > Bruce > > > .