* timer question
@ 1994-06-02 6:24 Joel Rivat
1994-06-02 14:48 ` Michael W. Walker
0 siblings, 1 reply; 2+ messages in thread
From: Joel Rivat @ 1994-06-02 6:24 UTC (permalink / raw)
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)
Any suggestion ?
Joel Rivat
rivat@declmdi.univ-lyon1.fr
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: timer question
1994-06-02 6:24 timer question Joel Rivat
@ 1994-06-02 14:48 ` Michael W. Walker
0 siblings, 0 replies; 2+ messages in thread
From: Michael W. Walker @ 1994-06-02 14:48 UTC (permalink / raw)
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()
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1994-06-02 14:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-06-02 6:24 timer question Joel Rivat
1994-06-02 14:48 ` Michael W. Walker
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox