You Can Get Miliseconds using $ticks
Here's 2 little aliases to see how it works
alias get_ms { set %mstart $ticks }
alias get_ms2 { set %msresult $calc($ticks - %mstart) | echo -at $calc(%msresult / 1000) }
Just Put These 2 aliases in a remote and then type /get_ms
wait for some random seconds and then type /get_ms2
You'll see that it will echo the miliseconds between /get_ms and /get_ms2
I think you'll then will be able to use it on your scripts

-OrFeAsGr-