Easy to Create, Easy to Change - Easy to use!


how to count second in execute function/derivation


Started by Mohd Sedik Zakaria
Search
You will need to Sign In to be able to add or comment on the forum!

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)))

Written by Mohd Sedik Zakaria 09/12/15 at 06:22:13 Dataease [{8}]FIVE

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...?

Written by DataEase 09/12/15 at 08:09:22 Dataease [{8}]FIVE