Autor Beitrag
Gintonik
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 66

Win MCE 2005
Delphi7 Enterpr.
BeitragVerfasst: Sa 13.01.07 20:09 
Hallo,

ich bin immernoch an meiner Zeitmessung. Das ich die gemessenen Daten in Stringgrids zwischenspeichere brauche ich ein Stringkompatibles Zeitformat. Ich stoppe nicht die Zeit, sondern möchte die aktuelle Systemzeit auf wenn möglich Hundertstel bzw. Zehntel anzeigen. Ist das Möglich?

Gruss Marcel...
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Sa 13.01.07 20:32 
Da gibts QueryPerformanceCounter... Dazu brauchst du dann noch QueryPerformanceFrequency, um das in Mikrosekunden oder so umzurechnen. Dieser Counter geht auf weniger als eine Mikrosekunde genau...
www.dsdt.info/tipps/?id=53
Gintonik Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 66

Win MCE 2005
Delphi7 Enterpr.
BeitragVerfasst: Mi 17.01.07 11:37 
Wo finde ich den QueryPerformanceCounter?
Delphi Hilfe gibt dazu nichts her...
Benutze D7 Ent.
aim65
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 312

Win 9x, Win XP
Delphi 3pro, 7PE
BeitragVerfasst: Mi 17.01.07 15:52 
Lies doch einfach mal den von Jaenicke angegebenen Link genau durch. Da ist alles wunderbar erklärt (sogar ich hab's verstanden :lol: ). Ist ne Win_API Funktion, daher nicht direkt in der Delphi-Hilfe zu finden.
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Do 18.01.07 15:57 
Und wenn du zu solch einer API Funktion Informationen willst, dann such bei Google einfach nach "Funktionsname MSDN", und schon findest du die entsprechende Seite bei Microsoft...
msdn.microsoft.com/l...rformancecounter.asp
Dort kannst du natürlich auch direkt suchen:
msdn.microsoft.com/library/default.asp
Ganz links oben kannst du einfach den Funktionsnamen angeben.

Und wenn du es so ähnlich wie die Delphi-Hilfe und offline haben willst, dann gibts da das PSDK (Platform Software Development Kit) zum Download von MS (ja, das ist das richtige, das ist nicht nur für Server 2003 sondern auch für XP):
www.microsoft.com/do...A&displaylang=en
Gibts auch als ISO statt in mehreren Cab-Downloads:
www.microsoft.com/do...D&displaylang=en
Ach so: Da sind dann auch über eine Million Zeilen Beispiele (in C++ allerdings) dabei. ;-)