Validity: Rule, Task
This keyword allows you to read the elapsed time since the current rule was enabled.
Syntax |
REAL t (I32 n) |
---|---|
n |
Number of the rule executor. Minimum representable number: 1 Maximum representable number: 32 |
Attributes |
Read only |
Notes |
Its unit of measurement is seconds |
Example
; if the elapsed time since enabling rule 2 is greater than 3600s ; then in sr(1) will be stored ; "it is more than an hour since rule2 is executed continuously!" _if(t(2)>3600) sr(1) = "it is more than an hour since rule2 is executed continuously!" |