Autor Beitrag
Tarry
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 213
Erhaltene Danke: 1



BeitragVerfasst: Do 24.07.08 11:00 
Hi,
ich hab ein Problem und zwar möchtet ich die Zeit zwischen zwei Button Klicks stoppen und die Zeit hochlaufen lassen.
Das funktioniert auch sehr gut nur, dass mir mit
ausblenden Delphi-Quelltext
1:
lZeit.Caption := TimeToStr(Now-StartTime);					


Die Zeit im Format
HH:MM:SS angezeigt wird und nicht MM:SS:HH.
Wie kann ich das jetzt ändern ?

gruß
Tarry

_________________
"Es gibt zwei Dinge, die unendlich sind. Das Universum und die menschliche Dummheit. Beim Universum bin ich mir noch nicht ganz sicher." -Albert Einstein
ZeitGeist87
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1593
Erhaltene Danke: 20

Win95-Win10
Delphi 10 Seattle, Rad Studio 2007, Delphi 7 Prof., C++, WSH, Turbo Pascal, PHP, Delphi X2
BeitragVerfasst: Do 24.07.08 11:07 
ausblenden Delphi-Quelltext
1:
formatdatetime('hh:nn:ss:zzz', Now-StartZeit)					


LG
Stefan

_________________
Wer Provokationen, Ironie, Sarkasmus oder Zynismus herauslesen kann soll sie ignorieren um den Inhalt meiner Beiträge ungetrübt erfassen zu können.
Tarry Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 213
Erhaltene Danke: 1



BeitragVerfasst: Do 24.07.08 11:12 
Danke ;)
Genau das hab ich gesucht !

_________________
"Es gibt zwei Dinge, die unendlich sind. Das Universum und die menschliche Dummheit. Beim Universum bin ich mir noch nicht ganz sicher." -Albert Einstein
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Do 24.07.08 12:00 
Moin!

user profile iconTarry hat folgendes geschrieben:
möchte ich die Zeit zwischen zwei Button Klicks stoppen
Hier würde ich dir eher die System-Funktion Suche in: Delphi-Forum, Delphi-Library GETTICKCOUNT ans Herz legen, das dürfte besser geeignet sein als die Systemuhr. :idea: ;)

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
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 24.07.08 13:34 
Oder die genauere Version mit QueryPerformanceCounter, auch wenn diese Genauigkeit bei der Zeit zwischen Buttonklicks vermutlich keine Rolle spielt:
www.delphi-treff.de/...applikation/tipp/45/
(Aber für spätere Leser des Threads mit vielleicht anderen Zielen erwähne ich es auf jeden Fall einmal.)