Google
  Web www.spinics.net

Re: Read CCNT on PXA255

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


Junaid Jamil wrote:
>> When an overflow occurs between two read, the second value you will read
>> will be smaller than the first one. If you compute the difference
>> between the two reads as an unsigned, it will do the right thing, and
>> you will not have to take care about overflows.
> 
> Well the approach you told me is ok but only for 1 overflow and I m
> already doing this. If my program run for more than 38 minutes, then
> it will overflow twice or more. So how to cater about this?

As I already told you, if you want to measure an interval longer than 38
minutes you do not need the OSCR, you can do this perfectly with
gettimeofday.

-- 
					    Gilles.

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

[Site Home]     [Linux ARM Kernel]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Tools]     [DDR & Rambus]     [Monitors]

Add to Google Google PageRank Checking tool