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 148 views
3 answers 153 views
3 answers 208 views
1 answer 151 views
1 answer 159 views
159 views asked Jun 29, 2022 by avibootz
...