how to count second in execute function/derivation
how to count second in execute function/derivation
Setlabeltext("timer",current time)+wait(0.01)
+LabelExecDQL("update opening","","","","")
+LabelExecDQL("post meter reading1","","","","")
+LabelExecDQL("post meter reading2","","","","")
+LabelExecDQL("post meter reading3","","","","")
+LabelExecDQL("post meter reading4","","","","")
+LabelExecDQL("post meter reading5","","","","")
+LabelExecDQL("post meter reading6","","","","")
+LabelExecDQL("post meter reading7","","","","")
+LabelExecDQL("post meter reading8","","","","")
+SetLabelText("timer2",current time)+wait(0.01)
+SetLabelText( "update opening",concat(LabelExecDQL(timer2)+wait(0.01)-LabelExecDQL(timer)+wait(0.01)))
Re:how to count second in execute function/derivation
Hello Mohd.
I guess you could have picked a simpler derivation to do the "test" on ;-)
Without seeing the entire "Image" here, I can only surmise that what you want is to figure out how long the process took.
The easiest way is simply to set the time in a global variable at the start.
SetVar("Timer",CurrentTime)+etc,
Then at the end if you want to set the result in a label you can simply add.
+SetLabelText("update opening",current time-GetVar("Timer"))
This will set the time in seconds.
On a different note.
,concat(LabelExecDQL(timer2)+
What are you trying to do here. LabelExecDQL execute the DQL in a label named either in "" or via a field value etc. Here you reference a field with a time in it...?