How to integrate this adjustable timer functionality using an Arduino for DC Motor Control

See BlinkWithoutDelay IDE example.