There's ISO C's time() which only has second resolution. Then there's
SUSv3's gettimeofday() which theoretically has microsecond resolution
and in practice in the order of 10ms.
Cheers
-Gerhard
--
Gerhard Wesp o o +43 (0)699 815 98 770
Bachtobelstrasse 56 |
Is anyone aware of which C library calls for determining time (down to the
millisecond) -
either elapsed or calendar - are best used under all the platforms that
FlightGear runs
on?
Jon
___
Flightgear-devel mailing list
Jon Berndt wrote:
Is anyone aware of which C library calls for determining time (down to the
millisecond) -
either elapsed or calendar - are best used under all the platforms that
FlightGear runs
on?
There is a plib api for accurate timing. You may not want a plib
dependency in jsbsim,
There is a plib api for accurate timing. You may not want a plib
dependency in jsbsim, but you could take a look at which functions they
use on which platforms.
Curt.
Thanks. I'll take a look. I've got something that seems to work well enough at
the moment,
but at some point I'd like to