You are here

function usleepWindows in Salesforce Suite 5

Same name in this branch
  1. 5 includes/nusoap.php \usleepWindows()
  2. 5 includes/nusoap.orig.php \usleepWindows()
Same name and namespace in other branches
  1. 5.2 includes/nusoap.php \usleepWindows()
  2. 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.orig.php, line 889

Code

function usleepWindows($usec) {
  $start = gettimeofday();
  do {
    $stop = gettimeofday();
    $timePassed = 1000000 * ($stop['sec'] - $start['sec']) + $stop['usec'] - $start['usec'];
  } while ($timePassed < $usec);
}