time_sleep_until --
Make the script sleep until the specified time
Descripción
bool time_sleep_until ( float timestamp )
This function will make the script sleep until the specified
timestamp. If the specified
timestamp is in the past,
time_sleep_until() will generate a
E_WARNING and return FALSE.
Nota: Esta función no
está implementada en plataformas Windows.
Lista de parámetros
timestamp
The timestamp when the script should wake.
Valores retornados
Devuelve TRUE si todo se
llevó a cabo correctamente, FALSE en caso
de fallo.
Ejemplos
Ejemplo 1. A time_sleep_until() example
<?php
//returns false and generates a warning var_dump(time_sleep_until(time()-1));
// may only work on faster computers, will sleep up to 0.2 seconds var_dump(time_sleep_until(time()+0.2));
Atención técnica y comercial: (54)-11-5031-1111 las 24 hs. los 365 días del año. ToWebs, (c) 2008
Virtucom Networks S.A Av. Belgrano 1586, piso 10 (C1093AAQ) Cap. Fed. Bs. As, Argentina.