Asp: Timer caricamento pagina

Vi piacerebbe far visualizzare ai vostri utenti il tempo necessario per aprire una pagina appena cliccata? Con asp si può, il codice da inserire a inizio pagina è il seguente:

%
Dim Inizio_Timer
Inizio_Timer = Timer
%
 
Mentre quello da inserire a fine :
%
Dim Fine_Timer
Fine_Timer = Timer
 
Dim Tempo_Totale
Tempo_Totale = FormatNumber(Fine_Timer - Inizio_Timer, 2)
 
Response.Write "Tempo necessario al caricamento della pagina: " Tempo_Totale  " sec."
%

Articoli simili

Lascia un commento

Your email is never published nor shared. Required fields are marked *

*
*

This is a captcha-picture. It is used to prevent mass-access by robots. (see: www.captcha.net)

You must read and type the 5 chars within 0..9 and A..F, and submit the form.

  

Oh no, I cannot read this. Please, generate a