X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=test_src%2Fperformance_test.h;h=867ef995af5150866c107835d2fdc1075b96f4b8;hb=22985930c9c2c610ae18e2d8df0f3ea78a082134;hp=6c0d13cc55df6c033a736945acc36409ab5ccd35;hpb=17332291e15183d71d88ed868275e3cb53917180;p=avr-crypto-lib.git diff --git a/test_src/performance_test.h b/test_src/performance_test.h index 6c0d13c..867ef99 100644 --- a/test_src/performance_test.h +++ b/test_src/performance_test.h @@ -1,6 +1,6 @@ /* performance_test.h */ /* - This file is part of the This file is part of the AVR-Crypto-Lib. + This file is part of the AVR-Crypto-Lib. Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de) This program is free software: you can redistribute it and/or modify @@ -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_*/