[fpc-pascal] Efficient millisecond timestamp

Tomas Hajny XHajT03 at hajny.biz
Fri Jan 10 10:30:03 CET 2014


On Fri, January 10, 2014 10:01, Michael Van Canneyt wrote:
> On Fri, 10 Jan 2014, Mark Morgan Lloyd wrote:
>
>> What's the most efficient and portable way of getting a millisecond
>> timestamp, relative to any ancient epoch? I find
>>
>> TimeStampToMSecs(DateTimeToTimeStamp(Now))
>>
>> hard to swallow since Now() is hardly efficient and the resulting Comp
>> is
>> marked as non-potable in the documentation.
>
> Where does it say that ?
>
> And why do you think now returns a comp ? It returns a double.

TimeStampToMSecs returns comp (not Now).

Tomas





More information about the fpc-pascal mailing list