X-Git-Url: https://git.cryptolib.org/avr-crypto-lib.git?a=blobdiff_plain;f=test_src%2Fperformance_test.h;h=f40a496cd1b6bf4d8510d4f069d397ee4f36a5da;hb=3a9f9d918fb95474996af535c225a7e187d88372;hp=d8b15655ee1a1882a77f76e738163845e72e97d6;hpb=2159c273c9d3361571a6ff1ab63d9bc76582fbab;p=avr-crypto-lib.git diff --git a/test_src/performance_test.h b/test_src/performance_test.h index d8b1565..f40a496 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 Crypto-avr-lib/microcrypt-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,11 +21,17 @@ #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_overhead(void);