LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 11-21-2006, 04:49 AM   #1
Siva4Linux
Member
 
Registered: Sep 2006
Posts: 31
Blog Entries: 1

Rep: Reputation: 15
Determining the Instantaneous Time


Hello there,

I wish to determine at the WIFI card driver-level exactly
at what point in time a given packet is queued up for transmission with a precision of nanoseconds. In order to determine the instantaneous time, what is the best tool available as I do not think that I can use gettimeofday() at the kernel level as it requires sys/time.h. Do you think jiffies can be used but I am not sure about its precision.

Please shed some light on this as early as you can.

Thanks in advance for taking your invaluable time to answer my question.

Cheers

Siva
 
Old 11-21-2006, 11:25 AM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,691
Blog Entries: 4

Rep: Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947
You're not going to get nanoseconds, no matter what you do, because you do not have a real-time clock with that kind of precision.

"Jiffies" are the resolution of the system heartbeat-interrupt clock. The current x86 processors offer an instruction that will store a clock-value that basically increments with each CPU clock-cycle. There are macros in the kernel source-code that can issue it.

But... what are you trying to do? Easily the best way of analyzing this sort of thing is basically ex post facto, from some kind of log analysis.
 
Old 11-22-2006, 05:21 AM   #3
Siva4Linux
Member
 
Registered: Sep 2006
Posts: 31

Original Poster
Blog Entries: 1

Rep: Reputation: 15
I think jiffies is suffice, as after having a careful look at the way IEEE 802.11 works, I came to a conclusion that precision in the order of milli/micro seconds is enough.

Thanks for you commnts.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
determining shell abk4523 Linux - Newbie 2 06-09-2005 08:28 AM
Not determining IP addy? PlentifulBalls Fedora 16 09-28-2004 08:27 PM
Determining what time power was pulled on Red Hat 8 system utmpwtmp Linux - General 4 08-21-2004 06:49 PM
Determining running time of video with mplayer miknight Linux - Software 2 05-25-2004 09:11 AM
Determining IP bluethundr Linux - Newbie 1 08-11-2003 11:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 03:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration