Re: [Cppcms-users] Execution/Page render time
Brought to you by:
artyom-beilis
|
From: Vicente B. <za...@gm...> - 2012-03-29 05:50:14
|
Well thank you for the help! it is so fast! I have implemented std::chrono,
because I want to show the execution time on the page, but when is the
correct time of render so its as accurate as possible, below is the
algorithm I want to implement, but when or where should be the time started
and where should the time be ended so its as realistic as possible (since
here I'm skipping render time I'm only using the login time)
void intro()
{
//get start time
content::master c;
//load files and sessions, logic of the page
//get end time and send it to the view render
render("intro",c); //or get the time end on the view itself (.tmpl)
}
is there a way I should implement it? maybe on other overloaded functions?
or something like preload, to get as realistic as it can be?
|