Re: YANFCQ [Yet Another Non-FastCode Question]: TDateTime -> uSec resolution
- From: "John Herbster" <herb-sci1_AT_sbcglobal.net>
- Date: Thu, 28 Jul 2005 20:10:58 -0500
"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
.
- References:
- YANFCQ [Yet Another Non-FastCode Question]: TDateTime -> uSec resolution
- From: Kristofer Skaug
- Re: YANFCQ [Yet Another Non-FastCode Question]: TDateTime -> uSec resolution
- From: John Herbster
- Re: YANFCQ [Yet Another Non-FastCode Question]: TDateTime -> uSec resolution
- From: Kristofer Skaug
- YANFCQ [Yet Another Non-FastCode Question]: TDateTime -> uSec resolution
- Prev by Date: Re: YANFCQ [Yet Another Non-FastCode Question]: TDateTime -> uSec resolution
- Previous by thread: Re: YANFCQ [Yet Another Non-FastCode Question]: TDateTime -> uSec resolution
- Next by thread: Fastcode MM B&V 0.48
- Index(es):