$time stop watch

Allows you to use a stopwatch to measure the amount of time elapsed from a particular time.


Example

Running this code will create a UI stat monitor above the UBot browser labeled as stop watch, with the "$time stop watch" function included as a content to track.

This will set the variable "#watch" to "start" the stop watch.

Then will set a loop for 5 times.

This will set the variable "#watch" to "stop" the stop watch.

This will be shown in the UBot browser for the stop watch duration.

ui stat monitor("Stop Watch: ",$plugin function("Time and Date Automation.dll", "$time stop watch", "Watch", "d\' Days \'h\' Hours \'m\' Minutes \'s\' Seconds \'fffffff\' Millisecond\'"))
set(#watch,$plugin function("Time and Date Automation.dll", "$time stop watch", "Start", ""),"Global")
loop(5) {
    load html($replace($plugin function("Time and Date Automation.dll", "$time random", "01/01/2014 00:00:00", "01/02/2014 23:59:00", "UBOT (MM/dd/yyyy HH:mm:ss)", "UBOT (MM/dd/yyyy HH:mm:ss)", 50),$new line,"<br>"))
}
set(#watch,$plugin function("Time and Date Automation.dll", "$time stop watch", "Stop", ""),"Global")

Was this helpful?

Previous Article

$time random