<Delay in php sleep functions their selves?> I hav...
# community-feeds
r
Delay in php sleep functions their selves? I have a PHP program that should sleep for some time to make it tick 100 times per 1 second in it's process while loop. But when I want to calculate the time lapsed for a 100 tick cycle I get more than 1 second. Is this a problem from my code or this is a known problem of PHP? Note: I am using pthreads for my program and the process is running on a Thread that is made by the main Thread. I am currently using function time_sleep_until() but I also tried usleep() and had the same problem. It...