function microtime

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Component/Datetime/TimeTest.php \Drupal\Tests\Component\Datetime\microtime()
  2. 8.9.x core/tests/Drupal/Tests/Component/Datetime/TimeTest.php \Drupal\Tests\Component\Datetime\microtime()
  3. 11.x core/tests/Drupal/Tests/Component/Datetime/TimeTest.php \Drupal\Tests\Component\Datetime\microtime()

Shadow microtime system call.

Return value

float

File

core/tests/Drupal/Tests/Component/Datetime/TimeTest.php, line 146

Namespace

Drupal\Tests\Component\Datetime

Code

function microtime(bool $as_float = FALSE) {
    return 1234567.89;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.