X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=test_src%2Fperformance_test.h;h=5e35983cd84d1cc5fd44e96d0b15713ac79c81b6;hp=5283b02e6bc8e95926a994f19cced0b89f3a4faa;hb=4b5da1dc27a791b5c448274a3db09cd035b33493;hpb=572b35bb7409fb362441e0812cb62eab9f2411f0 diff --git a/test_src/performance_test.h b/test_src/performance_test.h index 5283b02..5e35983 100644 --- a/test_src/performance_test.h +++ b/test_src/performance_test.h @@ -1,7 +1,7 @@ /* performance_test.h */ /* This file is part of the AVR-Crypto-Lib. - Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de) + Copyright (C) 2006-2015 Daniel Otte (bg@nerilex.org) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -21,13 +21,19 @@ #include #include +#include +#include + + +#define START_TIMER TCCR1B=1 +#define STOP_TIMER TCCR1B=0 void calibrateTimer(void); void startTimer(uint8_t granularity); uint64_t stopTimer(void); -void getOverhead(uint16_t* constoh, uint16_t* intoh); +void getOverhead(uint16_t *constoh, uint16_t *intoh); -void print_time_P(PGM_P s, uint64_t t); +void print_time_P(PGM_P s, uint32_t t); void print_overhead(void); #endif /*PERFORMANCE_TEST_H_*/