Cycles32 is an Arduino library for measuring clock cycles at 32 bit resolution. It uses the 16 bit Timer/Counter1 on an ATmega328.
The overhead in cycles introduced by function calls is not taken into account.
Tested with the Arduino Pro Mini ATmega328 (5V, 16MHz).
Except where noted otherwise, files are licensed under the WTFPL.
Copyright © 2018 Felix E. Klee
This work is free. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See the COPYING file for more details.