Re: time measurements

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Check out timestamp-counter. You can reach the processor speed with
that. To the best of my knowledge it is the lowest possible normally. A
nice description is available in the book - LINUX DEVICE DRIVERS by
Rubini.

-Pradeep


On Tue, 12 Mar 2002, Joerg Eggink wrote:

> 
> 
> >Of course, there are plenty of other ways.  If anyone can recommend
> >another one, I look forward to read...
> 
> Thanks for the help.
> Now I use  do_gettimeofday(struct timeval *) and I write a little function 
> which calculates the different of two values. 
> 
> > -----Original Message-----
> > From: kernelnewbies-bounce@nl.linux.org
> > [mailto:kernelnewbies-bounce@nl.linux.org] On Behalf Of Joerg Eggink
> > Sent: Monday, March 11, 2002 4:27 PM
> > To: kernelnewbies@nl.linux.org
> > Subject: time measurements
> >
> >
> > Hello 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
> >
> 


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux