Autor Beitrag
mars
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 238

Debian Woody, Win 2000, Win XP
D7 Ent, Kylix 3
BeitragVerfasst: Sa 22.02.03 11:45 
Hallo

Kennt jemand ein Programm, mit welchem man die Laufzeiten sowohl von Konsolen als auch GUI-Programmen genaustens messen kann? In Delphi ist nirgends so etwas integriert, nicht wahr?
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Sa 22.02.03 12:02 
du kannst mit GetTickCount abfragen wie lang windows schon läuft. beim start des proggis speicherst du den werd und ziehst beim beenden des proggis den gespeicherten wert von dem aktuellen ab und schon hast du die laufzeit deines proggis in Mille Sek.

_________________
In the beginning was the word.
And the word was content-type: text/plain.
mars Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 238

Debian Woody, Win 2000, Win XP
D7 Ent, Kylix 3
BeitragVerfasst: Sa 22.02.03 13:43 
Danke mal für die Antwort. Leider ist mir diese Funktion viel zu ungenau (55ms). Geht es denn hardwaretechnisch überhaupt genauer oder ist hier die Grenze schon erreicht?
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Sa 22.02.03 16:02 
also genauer als millisekunden ?? da bekommst du probleme !!

_________________
In the beginning was the word.
And the word was content-type: text/plain.
Aya
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1964
Erhaltene Danke: 15

MacOSX 10.6.7
Xcode / C++
BeitragVerfasst: Sa 22.02.03 17:02 
Hi,

versuch's mal mit QueryPerformanceCounter... das ist das genaueste was es gibt.. :) (auf jedem Rechner unterschiedlich schnell!)

Bei mir schafft der QueryPerformanceCounter z.B. 1666360000 zähltschritte pro Sekunde. Also wenn ich das noch richtig weiß aus dem Physik unterricht rechnet er in NanoSekunden... :)

Au'revoir,
Aya

_________________
Aya
I aim for my endless dreams and I know they will come true!
mars Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 238

Debian Woody, Win 2000, Win XP
D7 Ent, Kylix 3
BeitragVerfasst: Sa 22.02.03 18:18 
@Aya: Danke vielmals. Ich habe es zwar noch nicht ausprobiert, aber diese Prozedur soll tatsächlich auf Millionstel Sekunden genau rechnen. Cool! Danke