06-16-04 10:57 PM
Leonardo Barbosa e Oliveira wrote:
>=20
> Hello, everybody!
>=20
> I am using the C function clock() as a counter
> of number of ticks of my programm. I am newbie in benchmarking
> architectures so please let me know if i am the
> right thing. I am using a Ultra-Sparc 5
>=20
> thanks in advance!
>=20
> The function is described here:
>=20
> http://htmlhelp.sunsite.dk/page.php/9/ch22s03.html
>=20
> Leonardo
>=20
>=20
> "A gente s=F3 sabe bem aquilo que n=E3o entende".
> Guimar=E3es Rosa
clock() is OK, but I prefer all the extra data
that getrusage() provides, like the split
between user time and system time, messages
sent/recieved, etc.
At first you won't know which other stuff
that getrusage() gives you is important to
you or not, but you'll have the info without
having to swap our one subroutine call for
another.
NPL
--=20
"It is impossible to make anything foolproof
because fools are so ingenious"
- A. Bloch
[ Post a follow-up to this message ]
|