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




"Kristofer Skaug" wrote

> 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;

Kristofer, I would worry about using routines from DateUtils.
There seem to be several problems there, and I would worry that
if and when they fix them, they might change some of the not
very well documented routines that you are using. Rgds, JohnH
.