Tema: getTimer()
Ver Mensaje Individual
  #2 (permalink)  
Antiguo 29/12/2003, 16:36
Avatar de TMeister
TMeister
Crazy Coder
 
Fecha de Ingreso: enero-2002
Ubicación: En la Oficina
Mensajes: 2.880
Antigüedad: 22 años, 3 meses
Puntos: 193
getTime() regresa los milisegundos que han transcurrido desde que la pelicula comenzo a ejecutarce....

Entonces llamando a una funcion cada cierto tiempo tomamos dicho tiempo algo asi

Código PHP:
tiempo = function () {
    
Number(getTimer()/1000);
    
Math.round(t*10)/10;
    
trace("Tiempo transcurrido "+t+" segundos");
};
setInterval(tiempo500); 
t = Math.roun(t*10)/10 es solo para redondear los Segundos conb un decimal ej(10.5)

Esta funcion se llama cada 500 milisegundos...


Saludos!!