Tracking Execution Time

QuestionsTracking Execution Time
Diyurman Gea asked 10 months 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 10 months 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; }”;


Abu Ghufran - Dev Team
Grid 4 PHP Framework
Your Answer

20 + 10 =

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?