From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1014db,6abe66868c0ab0b1 X-Google-Attributes: gid1014db,public X-Google-Thread: 1164f8,6abe66868c0ab0b1 X-Google-Attributes: gid1164f8,public From: walker@avenir.cerl.uiuc.edu (Michael W. Walker) Subject: Re: Help in computing time.... Date: 1995/06/21 Message-ID: <3s9bav$o9l@vixen.cso.uiuc.edu>#1/1 X-Deja-AN: 104873793 distribution: inet references: <3s884v$7qj@hermes.acs.unt.edu> organization: University of Illinois at Urbana-Champaign keywords: time, cc, gcc, ALPHA newsgroups: comp.lang.c,comp.sys.dec In article <3s884v$7qj@hermes.acs.unt.edu>, Falguni Sarkar wrote: > > >I need to evalute the physical time between two successive points >in one of my experimental program. Hence I am using the function >time(), which is returning me always NULL values or the programs >do not compile. I will highly appreciate any suggestion about >how to fix this. > I found clock_gettime() to be a solid solution for obtaining a real time clock.