Вниз
Скачать: CL | DM;

processor frequency   Найти похожие ветки 

← →
CrazyTemo   (2002-04-09 10:33) [0]

есть ли такая функция которая возврашает частату процесора

сбасибо


← →
handra ©   (2002-04-09 10:53) [1]

function GetCPUSpeed : Double;
const
DelayTime = 500;
var
TimerHi,
TimerLo : DWORD;
PriorityClass,
Priority : Integer;
begin
PriorityClass := GetPriorityClass(GetCurrentProcess);
Priority := GetThreadPriority(GetCurrentThread);

SetPriorityClass(GetCurrentProcess, REALTIME_PRIORITY_CLASS);
SetThreadPriority(GetCurrentThread, THREAD_PRIORITY_TIME_CRITICAL);

Sleep(10);
asm
dw 310Fh
mov TimerLo, eax
mov TimerHi, edx
end;
Sleep(DelayTime);
asm
dw 310Fh
sub eax, TimerLo
sbb edx, TimerHi
mov TimerLo, eax
mov TimerHi, edx
end;

SetThreadPriority(GetCurrentThread, Priority);
SetPriorityClass(GetCurrentProcess, PriorityClass);

Result := TimerLo / (1000 * DelayTime);
end;



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.44 MB
Время: 0.012 c
1-30794
matvey
2002-05-30 13:37
2002.06.10
MDI Child форма


1-30851
Magic
2002-05-28 15:23
2002.06.10
Помогите разобраться с StringGrid. Пожалуйста.


1-30885
ETeRNaL
2002-05-30 06:05
2002.06.10
TRichEdit


6-30956
ввв
2002-04-01 20:18
2002.06.10
mapireadmail


14-30992
Чужой
2002-04-22 11:27
2002.06.10
Значения в .INI файлах




   Наверх