Fixed TICKS_PER_SECOND to match implementation (@8MHz)
Merge branch 'template'