-----Original Message-----
From: Joerg Eggink [mailto:joerg.eggink@ccrle.nec.de]
Sent: Monday, March 11, 2002 4:27 PM
To: kernelnewbies@nl.linux.org
Subject: time measurementsHello all
How can i make time measurements smaller than 1 milliseconds in a kernel
module.I try it with the jiffies value but I get always the same output value
because the time is to short.
But I'm not sure what jiffies is. Is it time in seconds, milliseconds or time
ticks or something else ?Thanks for your help in advance
Regards
Jörg
--------------------------------------------------------
Joerg Eggink
Network Laboratories Heidelberg NEC Europe Ltd.
Adenauerplatz 6
D-69115 Heidelberg, Germanyemail: joerg.eggink@ccrle.nec.de
http://www.ccrle.nec.de
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/
jiffies is timer tick. Linux Timer is normally set
to 10ms. So one jiffy is 10 ms.
If
your system has RTC (Real Time Clock) working, then you can use
sys_gettimetimeofday()
function to get time measurements in terms of
microseconds.
hope
this helps.
----
Nazim