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

Breadcrumb

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

function SystemStopWatchWithOffset::current

Throws

InvalidArgumentException

Overrides StopWatch::current

File

vendor/phpunit/phpunit/src/Event/Value/Telemetry/SystemStopWatchWithOffset.php, line 34

Class

SystemStopWatchWithOffset
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit

Namespace

PHPUnit\Event\Telemetry

Code

public function current() : HRTime {
    if ($this->offset !== null) {
        $offset = $this->offset;
        $this->offset = null;
        return $offset;
    }
    return HRTime::fromSecondsAndNanoseconds(...hrtime());
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal