Re: Get UTC from RDTSC

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

 



On 15/07/10 18:42, Radhesh Kamath wrote:
> I have a kernel module that sends me an RDTSC value to userspace, and
> I need to get a UTC timestamp based on this.
> As far as I understand, RDTSC gives me the clock ticks that have
> elapsed since the processor was switched on (this is a 64-bit machine,
> so my guess is that wraparound is not an issue).
> 
> How can I use this info to obtain a UTC timestamp?

Radhesh,

I suggest that you look into the NTP daemon (ntpd, http://www.ntp.org/).

This daemon already does its best to obtain timing information from as
many sources as you configure, in order to discipline the local clock to
observe UTC as closely as possible.

Jan

--
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