Common Event question

Hey folks. New developer here playing around with RPG Maker MV and I already have a question.

(Hopefully this is the right forum)

I've created a day/night system where a common event runs a timer and increments day and hour variables after waiting a certain amount of frames. During certain hours, I change the color to show day, sunset, night, sunrise. All of that works fine. My question is - does the timer still run during battle? And if so, how would I access the common event within a random encounter to essentially pause the timer?

Thanks in advance for any help!
As far as I now, the common event stops during battles, but the screen tone changes will be kept.
You can trigger common events by using switches and turn off the switch during an event to stop the timer. The event will rerun when restarting the event by re-enabling the switch.
I recommend using a Day/Night-Cycle Plugin that does that automatically.
Is there a way to access events or code within a random battle encounter on a map?

I'm away from my dev computer so I can't easily check at the moment.
the "random"battles are just calling regular troops in battlescreen - the only thing random is the selection when and which troop to call.
But you can use the troop events inside the troop regularly.
Depending on what you want to do, Yanfly's Base Troop Events Plugin let's you determine event commands for all Troop Events at once.

Original thread: https://forums.rpgmakerweb.com/threads/common-event-question.74952/