Re: time measurements

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

 



> As far as i know jiffies will give time in seconds.
> 
Are you sure? 

One way I usually measure time on ia32 architecture based machines:
#include <asm/msr.h> /* where asm should point to asm-i386 by a symb
                      * link 
                      */
time_measure{
u_int32_t low, high;
rdtsc(low,high);
}

Of course, there are plenty of other ways.  If anyone can recommend
another one, I look forward to read...

Regards,

Lukas
On Tue, 12 Mar 2002, Rupa wrote:

> As far as i know jiffies will give time in seconds.
> 
> Regards,
> R.Rupa
> Ionidea Enterprise Solutions Pvt Ltd.,
> 38-40,Export Promotion
> Industrial Park,Whitefield,
> Bangalore-560066
> 
> 
> 
> -----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
> 
> 
> 
> --------------------------------------------------------
> Joerg Eggink
> Network Laboratories Heidelberg NEC Europe Ltd.
> Adenauerplatz 6
> D-69115 Heidelberg, Germany
> 
> email: 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/
> 
> 
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive:       http://mail.nl.linux.org/kernelnewbies/
> FAQ:           http://kernelnewbies.org/faq/

-- 
Lukas Ruf                        Swiss Federal Institute of Technology
Office: ETZ-G61.2                             Computer Engineering and
Phone: +41/1/632 7312                        Networks Laboratory (TIK)
Fax:   +41/1/632 1035                                      ETH Zentrum
PGP 2.6: ID D20BA2ED;                                    Gloriastr. 35
Fingerprint 6323 B9BC 9C8E 6563  B477 BADD FEA6 E6B7    CH-8092 Zurich
--
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