mIRC Home    About    Download    Register    News    Help

Print Thread
#167585 27/12/06 02:52 AM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
how would i get this to calc in ms instead of seconds? have been trying a while, but no luck smirk

%pt = $round($calc((($ticks / 1000) - $lagstat(sentat)) * 2),1)


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
$ticks is measured in milliseconds, so to get the number of milliseconds, don't divide by 1000. To get it accurately (based on what I'm seeing), you'll also need to calculate the information returned by $lagstat in milliseconds.


Link Copied to Clipboard