Re: YANFCQ [Yet Another Non-FastCode Question]: TDateTime -> uSec resolution



John Herbster wrote:
> Kristofer, This sounds familiar, so I searched
<....>
> and found the following:

Nice thread. Thanks for that!
BTW we had already fixed SecondsBetween() in a similar way.

function SecondsBetweenExt(const StartTime,EndTime:TDateTime):Int64;
begin
// Add 500 msecs to do the proper rounding...
Result := (MilliSecondsBetween(StartTime, EndTime) + 500) div 1000;
end;

Argh, my programming life was so much simpler before this floating point
stuff crept in... :-)

--
Kristofer



.



Relevant Pages

  • Re: Who would you make CEO?
    ... He'd insist on moving the Borland campus to NYC. ... (not that I would mind) ... Kristofer ... Prev by Date: ...
    (borland.public.delphi.non-technical)
  • Re: Number of VCLs
    ... But Borland appears to enjoy redefining this every 2-3 years. ... Kristofer ... Prev by Date: ...
    (borland.public.delphi.non-technical)
  • Re: Borland marketing?
    ... PS. happy Koninginnedag, Rudy! ... have some orange vlaai, will you? ... Kristofer ... Prev by Date: ...
    (borland.public.delphi.non-technical)
  • Re: Borland marketing?
    ... LOL! ... > Followup set. ... Kristofer ... Prev by Date: ...
    (borland.public.delphi.non-technical)
  • Re: Unscientific poll
    ... In my experience there's no major difference in stability between D5-6-7, ... Kristofer ... Prev by Date: ...
    (borland.public.delphi.non-technical)