Initializing multiple timers within the draw loop ()

Hi, My aim is to calculate two timers . So for example timer 1 starts as soon as millis() is called . If we just for example say after 5 seconds the xPos enters the if block. Then that moment and timer1 is 5 seconds . and timer2 should be 0. so anything beyond that point timer 1 would be 5,6,7,8,9 seconds while timer2 would be 1,2,3,4 seconds