From 90973e833d69a93525ef2c4eb5ab687ee13342df Mon Sep 17 00:00:00 2001 From: "Petteri.Aimonen" Date: Mon, 27 Feb 2012 16:40:45 +0000 Subject: Benchmark suite using simulators --- benchmarks/interface.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 benchmarks/interface.h (limited to 'benchmarks/interface.h') 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 + +// 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); -- cgit v1.2.3