forked from Imagelibrary/rtems
2008-09-05 Ralf Corsepius <ralf.corsepius@rtems.org>
* timer/timer.c: Use "true" instead of "1" for "bool"s.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2008-09-05 Ralf Corsepius <ralf.corsepius@rtems.org>
|
||||
|
||||
* timer/timer.c: Use "true" instead of "1" for "bool"s.
|
||||
|
||||
2008-08-31 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* timer/timer.c: Eliminate empty function from every benchmark timer
|
||||
|
||||
@@ -62,7 +62,7 @@ int benchmark_timer_read( void )
|
||||
|
||||
total = (uint32_t)0x0000ffff - t; /* result is 1/512000 = ~2 uS */
|
||||
total = (total * 1953) / 1000; /* convert to uS */
|
||||
if ( benchmark_timer_find_average_overhead == 1 )
|
||||
if ( benchmark_timer_find_average_overhead == true )
|
||||
return total; /* in XXX microsecond units */
|
||||
else {
|
||||
if ( total < LEAST_VALID )
|
||||
|
||||
Reference in New Issue
Block a user