In a form I would like to count the execution time of the script. What events should I use for the start time and for which the end time ?
how would you like to do this ? you can save a time to a variable on starting and ending it depends what you want.
I have never needed to do this, but i would start with onAppini or onscrvpini, what i would do if i was you is add echo “OnAppini”; echo “onScriptini”; etc to all the events to test then you will see which one starts first and ends.
It depends on what you want to measure, the full time including the presentation of the form? The onapplicationinit is fired only once, onscriptinit always at the beginning, would be a good starting point. OnFooter will fire at the end of the form. there is a youtube instruction movie of scriptcase to show you which events are fired when.
Grid has onFooter, forms do not, like i said before add echo “xxxxx”; to every event to find where your code stops executing.