Refactor code, including general purpose timer, chrono high resolution clock, AVR startup.