You could just use $uptime(mirc,3) to get the number of seconds mIRC has been open, or $calc($uptime(mirc) / 1000) if you wanted to be more accurate.