| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /inetpub/wwwroot/cdc/wp-content/plugins/wordfence/modules/login-security/classes/utility/ |
Upload File : |
<?php
namespace WordfenceLS;
class Utility_Sleep {
/**
* Implements sleep in a way that supports fractional seconds. This is necessary because `usleep` is documented
* as only supporting partial seconds (i.e., anything sub-1 second) while `sleep` only supports whole number
* seconds. For durations above 1 second with a fractional amount, we end up calling both.
*
* @param int|float $seconds
*/
public static function sleep($seconds) {
if ($seconds >= 1) {
sleep((int) $seconds);
$seconds -= (int) $seconds;
}
if ($seconds > 0) {
usleep((int) (1000000 * $seconds));
}
}
}