Arduino-like millis library, using TIM2.