I am working on a project and I am trying to prevent using any of the Arduino libraries since allot of them come with extra "Junk" and are not as fast as the core AVR libraries.
My question is if there is a AVR library that includes the equivalent of Arduino's millis() and micros() functions or if I need to write my own library?
I realize that I could use a timer and ISR to increment a value to keep track of the ticks but why reinvent the wheel if it is not necessary.
My question is if there is a AVR library that includes the equivalent of Arduino's millis() and micros() functions or if I need to write my own library?
Since counting the time from startup will require configuration and use of a timer with custom code in the timer ISR (like you pointed out), you won't find a function like this in the AVR library.
Those libraries are not designed to hog a resource as general as a timer for something specific. This is a good example where Arduino libraries may provide a easy start, but break down as soon as you need a more control over a resource that the libs use internally (like using timer0 for something custom).