Immer diese Zeitprobleme
Posted: 11 Jul 2023, 21:03
Good day everyone!
Bei "Dauer" sollte "00:00:03" dastehen.
Oder "01:23:56" - je nach Wert bei sleep.
Was ist das Problem?
Grüße, Stroker-007
Code: Select all
FormatTime, Start_Calc, HH24MISS, HHmmss ; nur damit klappt das Rechnen
FormatTime, Start_Show, HH24MISS, HH:mm:ss ; aber so soll es in der MsgBox dastehen
sleep 3000
FormatTime, Stop_Calc, HH24MISS, HHmmss ; dito, siehe oben
FormatTime, Stop_Show, HH24MISS, HH:mm:ss ; dito, siehe oben
Time_Calc := Stop_Calc - Start_Calc
MsgBox % Time_Calc ; Kontrolle: die Rechnung mit Time_Calc stimmt!
FormatTime, Time_Show, %Time_Calc%, HH:mm:ss ; aber das funktioniert nicht:
MsgBox %Start_Show%`tStartzeit`n%Stop_Show%`tStopzeit`n--------------------`n%Time_Show%`tDauer
Bei "Dauer" sollte "00:00:03" dastehen.
Oder "01:23:56" - je nach Wert bei sleep.
Was ist das Problem?
Grüße, Stroker-007