From: walker@avenir.cerl.uiuc.edu (Michael W. Walker)
Subject: Re: timer question
Date: 2 Jun 1994 14:48:20 GMT [thread overview]
Message-ID: <2skrfk$5ee@vixen.cso.uiuc.edu> (raw)
In-Reply-To: 2sjtu2$45@cismsun.univ-lyon1.fr
In article <2sjtu2$45@cismsun.univ-lyon1.fr>,
Joel Rivat <rivat@univ-lyon1.fr> 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()
prev parent reply other threads:[~1994-06-02 14:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-06-02 6:24 timer question Joel Rivat
1994-06-02 14:48 ` Michael W. Walker [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox