From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,3f87e068fbc109f1 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-06-02 08:23:25 PST Path: bga.com!news.sprintlink.net!hookup!usc!howland.reston.ans.net!vixen.cso.uiuc.edu!avenir!walker From: walker@avenir.cerl.uiuc.edu (Michael W. Walker) Newsgroups: comp.unix.osf.osf1 Subject: Re: timer question Date: 2 Jun 1994 14:48:20 GMT Organization: University of Illinois at Urbana-Champaign Message-ID: <2skrfk$5ee@vixen.cso.uiuc.edu> References: <2sjtu2$45@cismsun.univ-lyon1.fr> NNTP-Posting-Host: avenir.cerl.uiuc.edu In article <2sjtu2$45@cismsun.univ-lyon1.fr>, Joel Rivat wrote: > How to get the time used by an application >that runs several days on the DEC Alpha ? >the command: >time foo >does not work for so long time, >and the function clock() from the C library >also does not work... >(for this function one would have expected >that 64 bits were used, but in fact >clock_t is defined as unsigned int) For "real time", you can use clock_gettime() For CPU time, you can use getrusage()