From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,f4bababbaf26eab9,start X-Google-Attributes: gidfee84,public From: oscarl@*remove-this*ac.upc.es (Oscar Laborda) Subject: Measuring time in OSF1 w/Alpha Date: 1999/11/30 Message-ID: <8208a6$f8h$1@diable.upc.es>#1/1 X-Deja-AN: 554792701 Content-Transfer-Encoding: 8bit Organization: Universitat Politecnica de Catalunya Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 Hello. I want to measure elapsed time in an OSF1 system with Alpha processor. While routines like gettimeofday() and getclock() give time in ns, the actual increments are of about 1ms, too bad for my purposes. I would need increments of 10us or better. I have also found the Alpha RPCC instruction, that gives increments in 1 to 16 clocks (about ns), but the counter is 32bit and it would overflow too fast. Finally there is an Alpha PALcode instruction RSCC, like RPCC, but with 64bit counter that is only useable on VMS! In OSF/1 I get an 'illegal hardware instruction' error. Can you help me? Thank you in advance. -- Oscar Laborda E-mail: oscarl@*remove-this*ac.upc.es To reply by e-mail delete '*remove-this*' from the e-mail address