Tracking Execution Time

QuestionsTracking Execution Time
Diyurman Gea asked 4 years ago

Dear Sir Abu,

Is there a way to mark the time when start opening the “add form” or “Edit Form” ?

So, I can calculate $execution_time = $finish_time – $start_time

Thanks Sir.

1 Answers
Abu Ghufran Staff answered 4 years ago

You can try using these 2 events,

// log start time in
$opt[“add_options”][“afterShowForm”] = “function(){ }”;

// calculate end time on form submit
$opt[“add_options”][“beforeSubmit”] = “function(post,form){ return true; }”;

$g->set_options($opt);

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

18 + 15 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?