interface.h 434 B

12345678910111213141516
  1. // This file defines the hardware or simulator interface that will be used to
  2. // measure timings and report results.
  3. #include <stdint.h>
  4. // Initialize
  5. void interface_init();
  6. // Reset timer/counter/something
  7. void start_timing();
  8. // Return the number of clock cycles passed since start_timing();
  9. uint16_t end_timing();
  10. // Print a value to console, along with a descriptive label
  11. void print_value(const char *label, int32_t value);