Hi guys, I'm trying to make a stopwatch like code where I can get total splits which I can then place into a stopwatch. Is there any way we can get to milliseconds though? The farthest this will go is seconds.

on *:TEXT:!start:#: {
var %stopwatch Currentrun.ini
remini %stopwatch Start
var %Stime $ctime
var %Swatch 1
writeini %stopwatch Start %Stime 1
}

on *:TEXT:!split:#: {
var %stopwatch Currentrun.ini
var %Start $ini(%stopwatch,Start,1)
var %Sptime $ctime
var %Ttime $duration($calc(%Sptime - %Start),N)
var %Total $ini(%stopwatch,Boss,0)
var %Tt %Total + 1
writeini %stopwatch Boss %Tt %Ttime
var %Msg $readini(%stopwatch,Boss,%Tt)
msg # Split is %Msg from start
}

Last edited by Newbie; 19/12/14 11:28 PM.