Tag: 获取CPU使用率预览模式: 普通 | 列表

delphi中获取 CPU 使用率

unit UnitCPU;

interface

uses
Windows, SysUtils;

// Call CollectCPUData to refresh information about CPU usage
procedure CollectCPUData;
// Call it to obtain the number of CPU's in the system
function GetCPUCount: integer;
// Call it to obtain the % of usage for given CPU
function GetCPUUsage(Index: integer): double;
// For Win9x only: call it to stop CPU usage monitoring and free system resources
procedure ReleaseCPUData;

implementation

查看更多...

Tags: 获取CPU使用率

分类:技术文章 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 696