From mboxrd@z Thu Jan 1 00:00:00 1970 From: bewithsathish@gmail.com (Sathishkumar Duraisamy) Date: Wed, 7 Dec 2011 15:35:35 +0530 Subject: Measuring time in range of microseconds. In-Reply-To: References: <4EDED28A.1010009@zoho.com> Message-ID: To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org Hi On Wed, Dec 7, 2011 at 3:10 PM, RKK wrote: > Hello Satish, > > > On Wed, Dec 7, 2011 at 12:41 PM, Sathishkumar Duraisamy > wrote: >> Hi Fredrick, >> >> On Wed, Dec 7, 2011 at 8:12 AM, Fredrick wrote: >>> I think if the specific ARM platform you are working supports a oneshot >>> clock_device, you would get the high res timer support. >>> >>> You can check for clock_devices defined in your platform having feature - >>> CLOCK_EVT_FEAT_ONESHOT. >> > My guess is that u want to measure the time taken to execute a > function in microseconds. > something like > start_time > YOUR_FUNCTION > end_time Sorry. I want to measure external pulse on a GPIO pin. -- Regards, Sathishkumar D http://flowersopenlab.weebly.com/