![]() |
Milisekunden jetzt!
Hallo
ich habe folgenden Code gschrieben um die aktuelle Zeit in Milisekunden herauszubekommen. Nur der Code gibt immer 0 zurück:
Delphi-Quellcode:
Warum ist das so?
function gettime:longword;
var now,hour,min,sec,msec:word; parent:TDateTIme; z:longword; begin; parent := now; decodetime(parent,hour,min,sec,msec); z := msec+(sec*1000)+(min*60*1000)+(hour*60*60*1000); result := z; end; Wo ist der Fehler? Danke TO |
hab es rausgefunden: statt
now muß es time heißen. Warum weiß ich aber auch nicht! |
now liefert datum & Uhrzeit, time nur die Uhrzeit.
|
Problem: Du hast eine Variable, die now heißt!!!
Chris |
Alle Zeitangaben in WEZ +1. Es ist jetzt 16:45 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz