Michael Schnell wrote:
On 01/10/2014 09:56 AM, Mark Morgan Lloyd wrote:
What's the most efficient and portable way of getting a millisecond
timestamp.
Do you run some "realtime" OS ? Otherwise millisecond timestamp don't
make much sense, as the OS might delay you application for a second now
and then.
Yes, I know. And I don't care much since the object of the exercise is
to convert a chunk of existing code into Pascal... and almost anything I
do will have better timing than Javascript running in the context of a
web browser :-)
If it turns out that the timer needs to be accurate rather than simply
monotonic then I'll come back to it later. But I'm not even sure whether
the filesystem supports things like timestamps... we're talking 1960 here.
--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk
[Opinions above are the author's, not those of his employers or colleagues]
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal