To have a timer enabled even when mIRC gets disconnected make it an offline timer using the -o switch. To make the timer continue even when the status window is closed use the -i switch (although note that this will make the timer's command operate on $activecid).
You can start the timer in an on START event to have it running whenever mIRC is open.