Home
About
Download
Register
News
Help
Register
Log In
Forums
Scripts & Popups
get ms instead of sec
Forums
Active Threads
Search
Who's Online
Help
Print Thread
get ms instead of sec
#
167585
27/12/06
02:52 AM
Joined:
Feb 2003
Posts: 3,432
Sweden/Borlänge
S
sparta
OP
Hoopy frood
OP
sparta
Hoopy frood
S
Joined:
Feb 2003
Posts: 3,432
Sweden/Borlänge
how would i get this to calc in ms instead of seconds? have been trying a while, but no luck
%pt = $round($calc((($ticks / 1000) - $lagstat(sentat)) * 2),1)
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Copy Link to Clipboard
Re: get ms instead of sec
sparta
#
167589
27/12/06
05:12 AM
Joined:
Aug 2004
Posts: 7,252
Ontario, Canada
R
RusselB
Hoopy frood
RusselB
Hoopy frood
R
Joined:
Aug 2004
Posts: 7,252
Ontario, Canada
$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.
Copy Link to Clipboard
Hop To
News and Discussions ------
Latest News
General Discussion
Support ------
mIRC Help
Connection Issues
Scripts & Popups
Development ------
Feature Suggestions
Developers
Bug Reports
Print Thread
Switch to Threaded Mode
Show Likes
Link Copied to Clipboard
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
Forum Rules
·
Mark All Read
Contact Us
·
Help
·
mIRC Homepage