]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - test_src/performance_test.c
fixing some bugs of performance measurment
[avr-crypto-lib.git] / test_src / performance_test.c
index de718bc54f63de6f42696de35f46ec751f373295..a5e897f16702a9ebdc3e4e13b334ab60c620f578 100644 (file)
@@ -67,8 +67,7 @@ void startTimer(uint8_t granularity){
        TCNT1  = 0;
        ovfcounter = 0;
        TCCR1A = 0x00;
-       TIMSK &= 0xC3;
-       TIMSK |= _BV(TOIE1); /* enable TOIE1 */
+       TIMSK  = _BV(TOIE1); /* enable TOIE1 */
        TCCR1B = granularity & 0x7;     /* start timer */
 }