Bee Jay <bee.ogra...@gmail.com>: [TDateTime] > What if an app need a precise and correct result, say a rocket launcher? > :D Is there other alternative solution?
Yes. Use a time type based on a fixed point representation. This eliminates drift and accuracy issues cause by a floating point representation. http://stop-me.svn.sourceforge.net/viewvc/stop-me/trunk/src/calendar.pas may serve as an idea. ;) (Still, the windows implementation, relying on MillisecondsBetween itself, still may not provide accurate clock times, so be careful.) Vinzent. -- GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01 _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal