Re: Allow sleep() to accept non-integer values

From: Date: Tue, 11 Aug 2020 11:14:14 +0000
Subject: Re: Allow sleep() to accept non-integer values
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-111454@lists.php.net to get a copy of this message
Hi Michael, On 11/08/2020 12:39, Dan Ackroyd wrote: > Changing a function to have surprising behaviour just to avoid using a > different function, that is already available, is a really bad > tradeoff. I agree. function mysleep(float $s): void { usleep($s * 1000000); } You're welcome ;-) Cheers -- Matteo Beccati Development & Consulting - http://www.beccati.com/

« previous php.internals (#111454) next »