From linux-arm-kernel Mon Aug 08 10:10:09 2005 From: Matthias Welwarsky Date: Mon, 08 Aug 2005 10:10:09 +0000 To: linux-arm-kernel Subject: Re: Is there any API to read time in microseconds or lesser?? Message-Id: <200508081210.09813.mwelwarsky () web ! de> X-MARC-Message: https://marc.info/?l=linux-arm-kernel&m=112349611328953 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