how to compute frequency of tsc counter

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

 



Hi list,

I am getting tsc timestamps from some 3rd party code. I need to
convert it into elapsed time. So if get two timestamps, I want to know
how much time in seconds has elapsed between the two. So I need to
first compute the frequency at which the tsc gets incremented.

I know that tsc is incremented at a constant rate. But is this rate
available somewhere in /proc or will i have to write my own code to
find it. Does the kernel already have such code that allows to convert
from tsc domain to real time domain?

Thanks!
MK

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at 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