Jump to content
MakeWebGames

[MC codes V1 & V2] Page Loading Time


jay-dogg2006

Recommended Posts

The first step is to place the following code at the very top of your php file to start the timer, so we can display the load time.

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Then at the very bottom of your page you need to add this code to stop the timer and then display the total time.

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

The script currently outputs

Page took 0.15235 seconds to load.

But you can change the text to anything you like by changing the text in the quotes, the time is output where the %f is placed.

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Link to comment
Share on other sites

  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...