Example #1
0
 public function testMsleep()
 {
     //Test no output
     $this->expectOutputString('');
     $time = microtime(true);
     System::msleep(1);
     $deltaMs = (microtime(true) - $time) * 1000;
     //Microtime appears to be a fairly unreliable way to check
     //Below assertion disabled due to flakey validation
     //$this->assertTrue($deltaMs > 0.1 && $deltaMs < 1.5);
 }
 /**
  * Sleep for X milliseconds
  *
  * @param $milliseconds
  *
  * @deprecated
  */
 function msleep($milliseconds)
 {
     \Packaged\Helpers\System::msleep($milliseconds);
 }