Here is my code,
1st, I record start time,
Code: Select all
automacro recordstarttime {
console /start/
exclusive 1
call {
$a = $.time
log $a
}
Code: Select all
automacro OK {
exclusive 1
run-once 1
eval ($.time - $a) == 20
call {
log OK
}
}
I try to use this macro listed below to check eval syntax, it works, it will give me the difference between current time and recorded time.
Code: Select all
macro tt {
log @eval ($.time - $a))
}