Counting clock cycles under Arm Linux

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



Hi!

on my SBC2440-II board with an arm920t core I want to count the clock  
cycles or to measure time in an other very precise way in order to get  
the exact execution time.

I use the function gettimeofday() but for my purpose micro seconds not  
precise enough.

Can I use any couters or systemcalls to get more precise information  
or is there a way to use something semilar to the RDTSC on an x86?

Thanks for the help.

-------------------------------------------------------------------
List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
FAQ:        http://www.arm.linux.org.uk/mailinglists/faq.php
Etiquette:  http://www.arm.linux.org.uk/mailinglists/etiquette.php

[Linux ARM]     [Linux ARM MSM]     [Linux ARM Kernel]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

Add to Google Follow linuxarm on Twitter