How to make the script sleep until the specified time using time_sleep_until() in PHP

1 Answer

0 votes
time_sleep_until(microtime(true) + 0.5);
echo "sleep up to 0.5 seconds";

 
/*
run:
     
sleep up to 0.5 seconds 
     
*/
 

 



answered Jul 21, 2016 by avibootz

Related questions

3 answers 308 views
3 answers 308 views
3 answers 354 views
1 answer 245 views
1 answer 248 views
248 views asked Jun 29, 2022 by avibootz
1 answer 366 views
...