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

Breadcrumb

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

function UvDriver::now

Overrides AbstractDriver::now

1 call to UvDriver::now()
UvDriver::activate in vendor/revolt/event-loop/src/EventLoop/Driver/UvDriver.php
Activates (enables) all the given callbacks.

File

vendor/revolt/event-loop/src/EventLoop/Driver/UvDriver.php, line 121

Class

UvDriver

Namespace

Revolt\EventLoop\Driver

Code

protected function now() : float {
    \uv_update_time($this->handle);
    
    /** @psalm-suppress TooManyArguments */
    return \uv_now($this->handle) / 1000;
}
RSS feed
Powered by Drupal