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 152 views
3 answers 207 views
1 answer 150 views
1 answer 158 views
158 views asked Jun 29, 2022 by avibootz
...