RTEMS 6.1-rc1
|
Timer for Blackfin. More...
Macros | |
#define | AVG_OVERHEAD 0 /* It typically takes X.X microseconds */ |
#define | LEAST_VALID 1 /* Don't trust a clicks value lower than this */ |
Functions | |
void | benchmark_timer_initialize (void) |
Initialize the Benchmark Timer. More... | |
benchmark_timer_t | benchmark_timer_read (void) |
Read the Benchmark Timer. More... | |
void | benchmark_timer_disable_subtracting_average_overhead (bool find_flag) |
Disable Average Overhead Removal from the Benchmark Timer. More... | |
Variables | |
uint32_t | Timer_interrupts |
bool | benchmark_timer_find_average_overhead |
Timer for Blackfin.
This file manages the benchmark timer used by the RTEMS Timing Test Suite. Each measured time period is demarcated by calls to benchmark_timer_initialize() and benchmark_timer_read(). benchmark_timer_read() usually returns the number of microseconds since benchmark_timer_initialize() exitted.
void benchmark_timer_disable_subtracting_average_overhead | ( | bool | find_flag | ) |
Disable Average Overhead Removal from the Benchmark Timer.
This method places the benchmark timer in a "raw" mode where it returns the actual number of units which have passed between calls to benchmark_timer_initialize and benchmark_timer_read counting.
[in] | find_flag | indicates to enable or disable the mode |
void benchmark_timer_initialize | ( | void | ) |
Initialize the Benchmark Timer.
This method initializes the benchmark timer and resets it to begin counting.
benchmark_timer_t benchmark_timer_read | ( | void | ) |
Read the Benchmark Timer.
This method stops the benchmark timer and returns the number of units that have passed since benchmark_timer_initialize was invoked.