[fpc-pascal] <time_fraction>Between bug?

"Vinzent Höfler" JeLlyFish.software at gmx.net
Tue Jun 1 19:47:14 CEST 2010


Bee Jay <bee.ography at 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



More information about the fpc-pascal mailing list