| |
|
|
- Page 1 - |
|
Jac de Lad | Hello Frank.
since some Meet try I subesquent Delphiquelltext for XPIA umzuschreiben:
function GetCPUSPeed():Longword;stdcall;
var timerhigh,timerlow:dword;
begin
SetPriorityClass(GetCurrentProcess,REALTIME_PRIORITY_CLASS);
SetThreadPriority(GetCurrentThread,THREAD_PRIORITY_TIME_CRITICAL);
try
asm
dw 310Fh
mov TimerLow,eax
mov TimerHigh,edx
end;
Sleep(1000);
asm
dw 310Fh
sub eax,TimerLow
sub edx,TimerHigh
mov TimerLow,eax
mov TimerHigh,edx
end;
Result:=Round(TimerLow/1000000);
finally
SetPriorityClass(GetCurrentProcess,NORMAL_PRIORITY_CLASS);
end;
end;
unfortunately is by me but nothing rausgekommen. If you or someone other pleasure moreover has can it/tappt im dunkeln/it whom Yes time paraphrase...
Jac
PS: The View source gives The actually (not The nominale) frequency the CPU in MHz back. |
|
|
| Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE) Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP | 05/14/07 ▲ |
|
|
|
|
| |
|
- Page 2 - |
|
| Franks Messung gives IMHO only on Pentiums The MHz from which your gladly see wished. *g* |
|
|
| |
|
|
|
Jac de Lad | The DLL the Urquelltext functions on all Systemen. i'll The time compilieren (today or tommorrow or so...). |
|
|
| Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE) Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP | 05/25/07 ▲ |
|
|
|
| |
|
- Page 3 - |
|
|
Frank Abbing | Sofern these on RDTSC basiert, runs it only on Pentium Prozessoren. this Mnemonic existing only for Pentium. |
|
|
| |
|
|
|
Frank Abbing |
The DLL the Urquelltext functions on all Systemen. i'll The time compilieren (today or tommorrow or so...).
and? and...? where is because The Dll stayed? |
|
|
| |
|
|
|
Jac de Lad | Tsstsstss...
The function is CPUSpeed and has no Parameter. the Result is faith I The Speed in MHz, or kHz...one Test Better get going show. The DLL lying too the InstallChild with and is there Installchild.dll. |
|
|
| Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE) Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP | 12/09/07 ▲ |
|
|
|
|
Michael Wodrich | i don't know whether the CPUSpeed Is it Unikode a so good thing is.
here time one small Kuriosum:
One game of my Bruders testing to the installation whom computer, whether the install at all rewards. it go 2.4 GHz expects.
On one something older computer runs the game because too (slow). now wished it it on one superneuen Laptop (Doppelherz) install, but the Install-routine refusing itself.
The reason: The Laptop begnügt itself with 1.5 GHz.
there's the Test then well eindeutig to hinten go gone.
Best wishes Michael Wodrich |
|
|
| Programmieren, das spannendste Detektivspiel der Welt. | 12/10/07 ▲ |
|
|
|
|
| especially since The CPU-speed particularly nowadys go ahead one part The tatsächliche ComputerPerformance wiederspiegelt... |
|
|
| |
|
|
|
ByteAttack | have it time tested, the Return Value is in MHZ. plainer goes But too with: HKEY_LOCAL_MACHINE,HARDWARE\DESCRIPTION\system\CentralProcessor\0 (with Multicorprozessoren too ...CentralProcessor\1 present) |
|
|
| |
|
|
|
Jac de Lad | it went me here only ums machbare... |
|
|
| Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE) Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP | 12/10/07 ▲ |
|
|
|
|
| |
|
| |
|
|
|
ByteAttack | |
|
| |
|
|
|
Jac de Lad | the must now straight the place, the always eigendlich writes... |
|
|
| Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE) Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP | 12/10/07 ▲ |
|
|
|