Myself I would do something like this:
code:
var time_counter;
function OnEvent_Signin(sEmail){ MsgPlus.AddTimer('uptime',10000); }
function OnEvent_Timer(sTimerId){
if (sTimerId == 'uptime') {
time_counter = time_counter + 10;
var days = time_counter / (24 * 3600);
if (days > 0){ timer_counter = timer_counter - (24*3600*days); }
var hours = timer_counter / 3600;
if (hours > 0){ timer_counter = timer_counter - (3600*hours); }
var minutes = timer_counter / 60;
Messenger.MyPersonalMessage = 'Online Time: ' + days + ':' + hours + ':' + minutes;
Debug.Trace(Messenger.MyPersonalMessage);
MsgPlus.AddTimer(sTimerId,10000);
}
}
Might work now I fixed a small part of the code.