[fpc-pascal] Efficient millisecond timestamp

Mark Morgan Lloyd markMLl.fpc-pascal at telemetry.co.uk
Fri Jan 10 09:56:47 CET 2014


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.

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]



More information about the fpc-pascal mailing list