2008-04-11 02:52:10 +00:00
|
|
|
#ifndef PERFORMANCE_TEST_H_
|
|
|
|
#define PERFORMANCE_TEST_H_
|
|
|
|
|
|
|
|
#include <stdint.h>
|
2008-04-20 02:36:13 +00:00
|
|
|
#include <avr/pgmspace.h>
|
2008-04-11 02:52:10 +00:00
|
|
|
|
|
|
|
void calibrateTimer(void);
|
|
|
|
void startTimer(uint8_t granularity);
|
|
|
|
uint64_t stopTimer(void);
|
|
|
|
void getOverhead(uint16_t* constoh, uint16_t* intoh);
|
|
|
|
|
2008-04-20 02:36:13 +00:00
|
|
|
void print_time_P(PGM_P s, uint64_t t);
|
|
|
|
void print_overhead(void);
|
|
|
|
|
2008-04-11 02:52:10 +00:00
|
|
|
#endif /*PERFORMANCE_TEST_H_*/
|