[fpc-pascal] Efficient millisecond timestamp

Mark Morgan Lloyd markMLl.fpc-pascal at telemetry.co.uk
Fri Jan 10 11:57:17 CET 2014


Michael Van Canneyt wrote:

>> And I hardly see the point of converting something coming from the 
>> hardware and/or a kernel counter to a double and then back to a quadword.
> 
> Nevertheless, Now() is the only portable construct available. Multiply 
> it with msecsperday and round to int64 if you need an integer value.

What about non-portable, e.g. unix-only? I don't see anything obvious in 
the BaseUnix documentation.

I'm sure there's something in EpikTimer I could use, but I'm trying to 
keep things fairly lean.

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