From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,7f54deb7b20a9690,start X-Google-Attributes: gidfee84,public From: melennec@cena.dgac.fr (Ronan MELENNEC) Subject: clock_gettime() vs. getclock() vs. __getclock() Date: 1995/10/30 Message-ID: <4735dr$gg7@donald.cenaath.cena.dgac.fr>#1/1 X-Deja-AN: 118391784 distribution: world sender: melennec@laurel (Ronan MELENNEC) organization: C.E.N.A. (Centre d'Etudes de la Navigation Aerienne) newsgroups: comp.unix.osf.osf1 Hello, I am in the process of porting some Pthreads code to Digital UNIX (OSF/1 3.0). The POSIX.1b clock_gettime() function (to retrieve UTC time with a fractional part in nanoseconds) is referenced in the man pages, but appears to be missing from the C libraries (either libc or libc_r). In the meantime, I am using getclock(). There also exists a __getclock() function, which has no man page. Is it a faster version of getclock() ? What do you suggest to replace clock_gettime(), apart from using getclock() (I'd prefer the application sources to stay portable) ? Does it (clock_gettime()) already appear in a library I am not aware of ? Cordially, -- Ronan Melennec | Centre d'Etudes de la Navigation Aerienne | Division Support Systeme +33 1 69 57 70 96 | Orly Sud 205 -- 94542 ORLY AEROGARE CEDEX