Ciao a tutti,
qualcuno sa dove posso trovare lo script che consente di misurare il tempo di esecuzione delle pagine asp?
Saluti,
Carlo
Ciao a tutti,
qualcuno sa dove posso trovare lo script che consente di misurare il tempo di esecuzione delle pagine asp?
Saluti,
Carlo
All'inizio della pagina
Alla fine:codice:<%inizio_caricamento = timer()%>
Robycodice:Generata in<%=FormatNumber(Timer() - inizio_caricamento, 4)%> secondi
www.creamweb.it [v. 3.0]
:: Script ASP!
:: Web directory gratuita!
:: Campioni del mondo!
Grazie![]()
hmmm...mi sono accorto che c'è qualche problema. Ogni tanto il tempo segnato è di 0,0000 secondi. Il codice che ho utilizzato è il seguente:
function startexpage
startex = timer()
startexpage = startex
end function
da mettere in testa alla pagina e
sub showexpage()
Response.Write("Pagina generata in ")
dim gentime
gentime = FormatNumber(Timer() - startex, 4)
Response.Write(gentime)
if instr(gentime, "0000") <> 0 then
gentime = 0.0642
end if
Response.Write(" secondi") &vbcrlf
end sub
da mettere in fondo alla pagina. Ho messo un valore fittizio nel caso il tempo dovesse restare a 0, ma non funziona e resta a 0,0000 ugualmente![]()
hmmm...mi sono accorto che c'è qualche problema. Ogni tanto il tempo segnalato è di 0,0000 secondi. Il codice che ho utilizzato è il seguente:
function startexpage
startex = timer()
startexpage = startex
end function
da mettere in testa alla pagina e
sub showexpage()
Response.Write("Pagina generata in ")
dim gentime
gentime = FormatNumber(Timer() - startex, 4)
Response.Write(gentime)
if instr(gentime, "0000") <> 0 then
gentime = 0.0642
end if
Response.Write(" secondi") &vbcrlf
end sub
da mettere infondo alla pagina. Ho messo un valore fittizio nel caso il tempo dovesse restare a 0, ma non funziona e resta a 0,0000 ugualmente![]()
UP
pure a me ogni tanto rimane a 0,000 il tempo di esecuzione della pagina... a cosa è dovuto?
eBacheca.it - Inserisci un annuncio
Stampa il valore di gentime dopo averlo modificato
codice:sub showexpage() Response.Write("Pagina generata in ") dim gentime gentime = FormatNumber(Timer() - startex, 4) if instr(gentime, "0000") <> 0 then gentime = 0.0642 end if Response.Write(gentime) Response.Write(" secondi") &vbcrlf end sub
il tuo non è proprio un metodo scientifico![]()