Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi DateUtils kaputt? (https://www.delphipraxis.net/88189-dateutils-kaputt.html)

Neutral General 11. Mär 2007 16:03


DateUtils kaputt?
 
Hi,

Ich benutze grad die Andorra2D Engine und im Application.OnIdle überpüfe ich ob seit einem Ereignis schon mehr als eine Sekunde vergangen ist:

Delphi-Quellcode:
if SecondsBetween(Now,FLast) >= 1 then
begin
  DoActions;
  FLast := Now;
end;
Aber es wird nix ausgeführt.. Meinstens nur einmal und dann nie wieder -.-
Im OnCreate setze ich FLast := Now ...

Gruß
Neutral General

Neutral General 11. Mär 2007 16:13

Re: DateUtils kaputt?
 
Mh schon ok.. Habs mit GetTickCount gemacht...


Alle Zeitangaben in WEZ +1. Es ist jetzt 16:15 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz