Le Thu, Oct 14, 2021 at 12:49:47PM -0400, o...@eigenstate.org a écrit : > Quoth tlaro...@polynum.com: > > For kerTeX, I need to access a time reference with better than the > > second. > > > > The answer is nsec(2). > > > > For posix: we already have gettimeofday(), > which has microsecond resolution.
Oh! I was using up-to-date POSIX reference and it was marked as obsolete, so I skipped this one but it is indeed better than the second for now. > > But also, I'd commit a patch that adds > clock_gettime: it's standardized, widely > used, relatively simple to implement, and > makes porting other code easier. > > (monotonicity aside -- that's separate.) Thanks! Best, -- Thierry Laronde <tlaronde +AT+ polynum +dot+ com> http://www.kergis.com/ http://kertex.kergis.com/ http://www.sbfa.fr/ Key fingerprint = 0FF7 E906 FBAF FE95 FD89 250D 52B1 AE95 6006 F40C ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Teb3e52c23bb1bca4-Md5873cec834556f6fda9633d Delivery options: https://9fans.topicbox.com/groups/9fans/subscription