[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-arm-kernel
Subject:    Re: Is there any API to read time in microseconds or lesser??
From:       Matthias Welwarsky <mwelwarsky () web ! de>
Date:       2005-08-08 10:10:09
Message-ID: 200508081210.09813.mwelwarsky () web ! de
[Download RAW message or body]

On Monday 08 August 2005 12:01, Sudheer wrote:
> I am looking for function which is equivalent to rdtsc() available from
> Intel

tough luck then, I guess. rdtsc() reads the cycle counters embedded in some 
intel CPUs. You won't find that on other architectures, so you should use a 
more portable way for determining the time.

regards,
	matthias

>
> -----Original Message-----
> From: linux-arm-kernel-bounces@lists.arm.linux.org.uk
> [mailto:linux-arm-kernel-bounces@lists.arm.linux.org.uk] On Behalf Of
> Dimitry Andric
> Sent: Monday, August 08, 2005 2:52 PM
> To: rsud@insilca.com.insilicasemi.com
> Cc: linux-arm-kernel@lists.arm.linux.org.uk
> Subject: Re: Is there any API to read time in microseconds or lesser??
>
> On 2005-08-08 at 09:20:18 rsud@insilca.com.insilicasemi.com wrote:
> >         Is there any API in the kernel which could me used to record
>
> the
>
> > time in microseconds? Something similar to rdtsc() in Intel ???
>
> do_gettimeofday() from include/linux/time.h is probably what you want.
>
>
>
> -------------------------------------------------------------------
> List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm-kernel
> FAQ:        http://www.arm.linux.org.uk/mailinglists/faq.php
> Etiquette:  http://www.arm.linux.org.uk/mailinglists/etiquette.php

-------------------------------------------------------------------
List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm-kernel
FAQ:        http://www.arm.linux.org.uk/mailinglists/faq.php
Etiquette:  http://www.arm.linux.org.uk/mailinglists/etiquette.php
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic