function usleepWindows in Salesforce Suite 5
Same name in this branch
- 5 includes/nusoap.php \usleepWindows()
- 5 includes/nusoap.orig.php \usleepWindows()
Same name and namespace in other branches
- 5.2 includes/nusoap.php \usleepWindows()
- 5.2 includes/nusoap.orig.php \usleepWindows()
sleeps some number of microseconds
@access public
Parameters
string $usec the number of microseconds to sleep:
File
- includes/
nusoap.php, line 894
Code
function usleepWindows($usec) {
$start = gettimeofday();
do {
$stop = gettimeofday();
$timePassed = 1000000 * ($stop['sec'] - $start['sec']) + $stop['usec'] - $start['usec'];
} while ($timePassed < $usec);
}