Re: how to compute frequency of tsc counter

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

 



hi ...

On Mon, Sep 27, 2010 at 12:28, MK <stardust496@xxxxxxxxx> wrote:
> 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.

Intel documents should be able to tell you about that. However, (and I
think you should already know), TSC, as the processor frequency itself
is now adjustable. Since the day of Intel Speed Step, it's not fixed
anymore.

So, I am afraid, unless you apply the calculation to pre Pentium M
processor or lock the frequency on certain number using certain
governor setting, you will hardly derive a correct time interval.

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

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