Le Mon, Oct 11, 2021 at 08:39:31PM +0200, tlaro...@polynum.com a écrit : >[...] > Amongst the extensions I had to add, there are two bits that go beyond > ISO C libc. One is a way to get elapsed time and unfortunately clock(3) > is not the answer. I then used POSIX.1:clock_gettime(2) with CLOCK_MONOTONIC > or CLOCK_REALTIME if the previous is not defined. > > But is clock_gettime(2) available in APE in any instance of Plan9 or is > there a routine achieving the same purpose?
For what I need, in fact I can simply use nsec(2), diffing nanoseconds times! (I have the printed manuals from Vita Nuova, I should remember to read the man pages first in printed form at leisure...) -- 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/T1992d89fd8b382c7-M7450a2a55a3baa87b5a2f993 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription