TimerThree Library with optimization and expanded hardware support