diff options
| author | Petteri.Aimonen <Petteri.Aimonen@gmail.com> | 2012-02-27 16:40:45 +0000 |
|---|---|---|
| committer | Petteri.Aimonen <Petteri.Aimonen@gmail.com> | 2012-02-27 16:40:45 +0000 |
| commit | 90973e833d69a93525ef2c4eb5ab687ee13342df (patch) | |
| tree | c154fc48cca12a87b8a82f9892c53d593f5da592 /benchmarks/interface.h | |
| parent | e929442f7113dd321057293b8addd7b6e781d77f (diff) | |
| download | libfixmath-90973e833d69a93525ef2c4eb5ab687ee13342df.tar.gz | |
Benchmark suite using simulators
Diffstat (limited to 'benchmarks/interface.h')
| -rw-r--r-- | benchmarks/interface.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/benchmarks/interface.h b/benchmarks/interface.h new file mode 100644 index 0000000..f8c5117 --- /dev/null +++ b/benchmarks/interface.h @@ -0,0 +1,16 @@ +// This file defines the hardware or simulator interface that will be used to +// measure timings and report results. + +#include <stdint.h> + +// Initialize +void interface_init(); + +// Reset timer/counter/something +void start_timing(); + +// Return the number of clock cycles passed since start_timing(); +uint16_t end_timing(); + +// Print a value to console, along with a descriptive label +void print_value(const char *label, int32_t value); |
