Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. HRTime.php

function HRTime::__construct

Throws

InvalidArgumentException

File

vendor/phpunit/phpunit/src/Event/Value/Telemetry/HRTime.php, line 39

Class

HRTime
@psalm-immutable

Namespace

PHPUnit\Event\Telemetry

Code

private function __construct(int $seconds, int $nanoseconds) {
    $this->ensureNotNegative($seconds, 'seconds');
    $this->ensureNotNegative($nanoseconds, 'nanoseconds');
    $this->ensureNanoSecondsInRange($nanoseconds);
    $this->seconds = $seconds;
    $this->nanoseconds = $nanoseconds;
}
RSS feed
Powered by Drupal