|
|
#1 |
|
Colaborador
![]() Fecha de Ingreso: enero-2012
Ubicación: In your mind
Amigos 6
Mensajes: 361
Gracias: 10
Agradecido 23 veces en 22 mensajes.
|
Contador del tiempo que tarda un Sitio en Cargar...
Código:
<?php
// Coded by @pssserick
// Free - Code × foro.el-hacker.com
$InicioCarga=date("H-i-s");
$FinCarga=date("H-i-s");
$resultado=SegundosDiferencia($InicioCarga,$FinCarga);
echo "Ha tardado ".$resultado." segundos en cargar la pagina.";
function SegundosDiferencia($horaini,$horafin)
{
$horai=substr($horaini,0,2);
$mini=substr($horaini,3,2);
$segi=substr($horaini,6,2);
$horaf=substr($horafin,0,2);
$minf=substr($horafin,3,2);
$segf=substr($horafin,6,2);
$ini=((($horai*60)*60)+($mini*60)+$segi);
$fin=((($horaf*60)*60)+($minf*60)+$segf);
$dif=$fin-$ini;
return $dif;
}
?>
__________________
![]() Programar es comprender
|
|
|
|
![]() |
| Herramientas | |
| Desplegado | |
|
|
Temas Similares
|
||||
| Tema | Autor | Foro | Respuestas | Último mensaje |
| Electronica Basica. Conociendo los componentes!!![En construccion] | kaiser1313 | Electronica Y Robotica | 14 | 12-mar-2012 17:36 |
| Grass Valley Edius 6.03 Full Fixed 2011 (RePack) | schiavi13 | Software | 0 | 27-sep-2011 19:05 |
| Cyberlink PowerDirector Ultra64 v 9.0.0.3305 MuLTi Language + Serial + Update Patch | schiavi13 | Software | 0 | 24-sep-2011 19:15 |
| Cómo convertirse en hacker | Besti4 | HacK GeneraL | 2 | 04-abr-2011 00:51 |
| Atacan el sitio web de MySQL a través de una inyección SQL | pamda | Noticias | 2 | 29-mar-2011 10:17 |