mIRC Home    About    Download    Register    News    Help

Print Thread
Miliseconds #93294 08/08/04 09:55 AM
Joined: Aug 2003
Posts: 16
M
morphium Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: Aug 2003
Posts: 16
Hi, it would be useful if you could use miliseconds in your Timestamp.
Thanks, morphium

Re: Miliseconds #93295 08/08/04 06:42 PM
Joined: Dec 2002
Posts: 788
C
Coolkill Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
That seems pretty pointless, every, if not almost all, the uses that timestamp has are user related, not calculated just read.

i.e. When someone said something in a channel..

as a result milliseconds timestamp would be pointless.

Eamonn.

Re: Miliseconds #93296 09/08/04 04:41 AM
Joined: Aug 2004
Posts: 11
H
harl Offline
Pikka bird
Offline
Pikka bird
H
Joined: Aug 2004
Posts: 11
one thing you should know before this is, that the millisecond-'timer' aint really that accurate enough to rely on it for showing the exact millisecond you want it to.

so if you just want some more differentiated message timestamp for an about guess of the time differences between 3 or more messages, you could use yourself for a workaround and something like
[[ $+ $asctime(HH:nn:ss) $+ : $+ $right($uptime(mirc,0),3) $+ ]]
as the 'timestamp'.
this wouldnt even show the correct sequence of milliseconds when a second already began, but mirc startet some milliseconds near the end of a second, there could be some 01:872 showing before an 01:065 because mirc started at a milliseconds-counter of 934 second irrelevant.
now as there's no millisecond- with the time-identifiers naturally (besides in $uptime) and if you wanted the 'milliseconds' to start counting at 000, the only way i see is to create that counter yourself, calculated by the milliseconds passed at $uptime and 'recounting' at 000 every time the second changes. and it should only do that when something happens, otherwise mirc will take up half of your machines resources, so you'll get frustrated, stop using mirc, forget to eat and drink, then starve and dehydrate, begin to write unreadable poems, painting senseless pictures, possibly kick the bucket, eat pizza or (even worse) marry someone.

but i wonder if pulling all those messages, notices, actions etc to show up in your own theme-like /echo commands would be worth the while of eliminating any possible 'negative' side-effects and stuff like that afterwards. ever more if you ran a script of some kind which needed to use the geniune mirc functions etc
might seem to be complicated or not, guess you've find out the best way for yourself then.

still have to agree, that its somehow 'pointless' to timestamp in milliseconds. seconds work fine, theres only very seldomly anyone saying two important things in the same second you'd like to know of how fast they were said.

every witless line of code is one witless line of code too much.

Re: Miliseconds #93297 10/08/04 10:20 PM
Joined: Dec 2002
Posts: 12
T
TimeFX Offline
Pikka bird
Offline
Pikka bird
T
Joined: Dec 2002
Posts: 12
I use $ticks for CTCP PING to get the ping in miliseconds but this isn't really reliable. Is uptime more accurate than $ticks?
(You can try it out by creating a highres timer that prints $ticks after every 10ms - will be desynced)

Re: Miliseconds #93298 13/08/04 04:34 PM
Joined: Aug 2004
Posts: 11
H
harl Offline
Pikka bird
Offline
Pikka bird
H
Joined: Aug 2004
Posts: 11
$ticks and $uptime(system) are just the same. run them for a year and they still wont desync