timing an application

From: Maciej Soltysiak (solt@dns.toxicfilms.tv)
Date: Tue Jan 14 2003 - 14:58:16 EST


Hi,

being inspired by some book about optimizing c++ code i decided to do
timing of functions i wrote. I am using gettimeofday to set
two timeval structs and calculate the time between them.
But the results depend heavily on the load, also i reckon that this
is an innacurate timing.

Any ideas on timing a function, or a block of code? Maybe some kernel
timers or something.

Regards,
Maciej Soltysiak

-----BEGIN GEEK CODE BLOCK-----
VERSION: 3.1
GIT/MU d-- s:- a-- C++ UL++++$ P L++++ E- W- N- K- w--- O! M- V- PS+ PE++
Y+ PGP- t+ 5-- X+ R tv- b DI+ D---- G e++>+++ h! y?
-----END GEEK CODE BLOCK-----
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Jan 15 2003 - 22:00:51 EST