X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=test_src%2Fperformance_test.c;h=5853c843d44fd871ab94ebe61844c39bf14210a1;hb=5ac75cfae217122b540c1a6d258054230dc534c3;hp=04a26bd0f34154404fe0efb42d900ca9880d2322;hpb=7c4486d3328c45462fd276916cb94b80b48725fc;p=avr-crypto-lib.git diff --git a/test_src/performance_test.c b/test_src/performance_test.c index 04a26bd..5853c84 100644 --- a/test_src/performance_test.c +++ b/test_src/performance_test.c @@ -51,13 +51,13 @@ ISR(TIMER1_OVF_vect){ } void calibrateTimer(void){ + volatile uint8_t i; startTimer(1); stopTimer(); const_overhead = TCNT1; startTimer(1); TCNT1=0xFFFE; - ; ; ; ; -// asm volatile("NOP\n"::); asm volatile("NOP\n"::); + i++; stopTimer(); int_overhead = TCNT1; }