aboutsummaryrefslogtreecommitdiff
path: root/benchmarks/interface.h
blob: f8c5117b06e8bafe6e4b280859a52b2d0d1ce7b5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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);