| |
|
|
- 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 - |
|
|
Frank Abbing | One double back To supplying is well not necessary, so much Power has your CPU neither, circa this worth in 64 bit present To must... ... The Bits go ggf. to the bill needed. Have a new Version prepares, The this drop now unroof should. Diesen code Have so did i To XPIA gepackt: CompileMarkSeparation {$cleq}
Declare x&
Cls
Print
Print Ermittelte Frequenz der CPU dieses Computers: ;
AsmStart GetCpuSpeed
.data
var1 dq 0
var2 dq 1000000
var3 dq 0
.code
.686p
invoke GetCurrentProcess
invoke SetPriorityClass,eax,REALTIME_PRIORITY_CLASS
invoke GetCurrentThread
invoke SetThreadPriority,eax,THREAD_PRIORITY_TIME_CRITICAL;
rdtsc
lea edi,var1
mov [edi],eax
mov [edi+4],edx
invoke Sleep,1000
rdtsc
lea edi,var1
sub eax,[edi]
sbb edx,[edi+4]
mov [edi],eax
mov [edi+4],edx
fild var1
fild var2
fdiv
fistp var3
invoke GetCurrentProcess
invoke SetPriorityClass,eax,NORMAL_PRIORITY_CLASS
lea edi,var3
mov eax,[edi]
AsmEnd(x&)
Print Str$(x&)+ MHz.
WaitInput
End
really interestingly, this RDTSC commands! |
|
|
| |
|
|
|
Dietmar Horn | Hello Frank,
I have this code straight time through XPSE and XPIA coursed.
On my AMD Sempron 3200+ with XP Home and 512 MB RAM shows Hardinfo 2005 jedesmal exakt 1795 MHz on, what of my opinion to vaguely hinkommen could.
your code shining yet however unfortunately sooner To value.
with mehrmaligen starts the of XPIA / XPSE begot CPUSPEED.EXE go always different values (mostly in the area of 950 MHZ To 990 MHz) displayed. occasionally are but too runaway up to concise 1500 MHz thereby.
Greeting Dietmar |
|
|
| Multimedia für Jugendliche und junge Erwachsene - MMJ Hoyerswerda e.V. [...] Windows 95 bis Windows 7 Profan² 6.6 bis XProfan X2 mit XPSE Das große XProfan-Lehrbuch: [...] | 05/17/07 ▲ |
|
|
|
|
Frank Abbing | objectively? In Systemsteuerung/system shows windows you under with computer: The speed your CPU on. in my case fit the too always except for a MHz very on.
The principle the Codes is Yes not of me, Have only Jacs code umgesetzt. functions because my first Codeumsetzung (something moreover supra) correctly? otherwise can I you not say, Why the lying could. The Messung becomes of Pentium-Mnemonic RDTSC implemented. whom knew I yourself To dato not.
it could too on it lying, the at Start the program Laufwerksaktivitäten The Messung disturbing. in the drop füge please times one Sleep 3000 behind CLS one. |
|
|
| |
|
|
|
Dietmar Horn | with both Codes are The values vaguely identical, see supra.
in the Systemsteuerung go by me always 987 MHz displayed. the stops I but ditto for little realistic. now understand I soon quite nothing more ...
will be the tommorrow evening time on a couple older PCs in the cabinet testing.
Greeting Dietmar. |
|
|
| Multimedia für Jugendliche und junge Erwachsene - MMJ Hoyerswerda e.V. [...] Windows 95 bis Windows 7 Profan² 6.6 bis XProfan X2 mit XPSE Das große XProfan-Lehrbuch: [...] | 05/17/07 ▲ |
|
|
|
|
Frank Abbing | OK, then tile the values vaguely with the Systemsteuerung. You can whom Test verlängern (Sleep-commands), then becomes the worth accurate. and moreover properly The Division adjust. |
|
|
| |
|
|
|
Dietmar Horn | One Sleep 3000 changes too nothing on whom Values.
today shows me too Hardinfo alternately time 985 MHZ and times 1795 MHz on. evident seems a computer really too only one Schätzer To his.
well Yes - at least shining my jetziger PC something faster To his, as my first 386 DX 40 with 4 MB RAM of 1992 ...
nevertheless walk Word 2000 and Corel Draw 10 not faster as previously Word 5.5 and Corel Draw 3.0 on my 386it. too Profan² 3.3 under Win 3.1 was then one Rennpferd in the comparison to that present XProfan 10.0 under Win XP been ...
Greeting Dietmar |
|
|
| Multimedia für Jugendliche und junge Erwachsene - MMJ Hoyerswerda e.V. [...] Windows 95 bis Windows 7 Profan² 6.6 bis XProfan X2 mit XPSE Das große XProfan-Lehrbuch: [...] | 05/17/07 ▲ |
|
|
|
|
Frank Abbing | Perhaps gives your CPU soon whom spirit on...
I yourself find, XProfan10 is quite slippy become. at least in the Contrast to 7it Version. 6.6 I had never, only 4.5. and the was still very gammy. can but everything deceive, because the computer Yes always faster go. |
|
|
| |
|
|
|
Dietmar Horn | Hmm .. have the part but first in the august or september 2006 bought.
the would naturally beautiful with the spirit forsaking, because I have Yes yet warranty or. Gewährleistung on it.
if me our MMJ-HY-Indianer on the friday evening not too very nerves, I will The CPU-Codes on Oldtimern with Win 95, Win98, Win ME and Win 2000 testing.
Greeting Dietmar |
|
|
| Multimedia für Jugendliche und junge Erwachsene - MMJ Hoyerswerda e.V. [...] Windows 95 bis Windows 7 Profan² 6.6 bis XProfan X2 mit XPSE Das große XProfan-Lehrbuch: [...] | 05/17/07 ▲ |
|
|
|
|
Dietmar Horn | Sorry, Frank.
but with the the code-testing-want etc. having for may part unfortunately not worked.
the lying however not on ours lovely MMJ-HY-Truppe.
I thanks all MMJ-Indianern for your understanding for my actually Befindlichkeit since friday evening (18.05.2007).
See my revised Avatar ...
Thank you!
Greeting Dietmar |
|
|
| Multimedia für Jugendliche und junge Erwachsene - MMJ Hoyerswerda e.V. [...] Windows 95 bis Windows 7 Profan² 6.6 bis XProfan X2 mit XPSE Das große XProfan-Lehrbuch: [...] | 05/19/07 ▲ |
|
|
|
|
Frank Abbing | self-evident. does me very sorrow. |
|
|
| |
|
|
|
| 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 ▲ |
|
|
|