title: Get the Percentage of Total CPU Usage
body: <p>I am trying to get the % of total CPU usage to a <code>label1.Caption</code></p>
  
  <p>I've searched and found these: </p>
  
  <ul>
  <li><p>didn't work - <a href="http://www.vbforums.com/showthread.php?345723-DELPHI-Get-CPU-Usage" rel="nofollow noreferrer">http://www.vbforums.com/showthread.php?345723-DELPHI-Get-CPU-Usage</a>  </p></li>
  <li><p>not what I need - <a href="http://delphi.cjcsoft.net/viewthread.php?tid=42837" rel="nofollow noreferrer">http://delphi.cjcsoft.net/viewthread.php?tid=42837</a></p>
  
  <ul>
  <li>also found bunch of solutions regarding calculating the Usage per process but that is not what i am looking for , i just want the total CPU usage 
  like this  widget :<a href="https://i.stack.imgur.com/jxAJy.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jxAJy.jpg" alt="http://s18.postimg.org/p8kemg7jt/ty_000.jpg"></a> </li>
  </ul>
  
  <p>this is what i am working on :</p></li>
  </ul>
  
  <p><a href="https://i.stack.imgur.com/xP5fL.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xP5fL.jpg" alt="enter image description here"></a>   </p>
  
  <p>I believe there is a simple way like when we get RAM usage.</p>
  
  <pre><code> GlobalMemoryStatus(RamStats);
   Label1.Caption := Format('RAM: %d %%', [RamStats.dwMemoryLoad]);
  </code></pre>