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

Breadcrumb

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

function Clock::getDefault

4 calls to Clock::getDefault()
BatchSpanProcessorBuilder::build in vendor/open-telemetry/sdk/Trace/SpanProcessor/BatchSpanProcessorBuilder.php
ClockFactory::getDefault in vendor/open-telemetry/sdk/Common/Time/ClockFactory.php
EventLoggerProvider::getEventLogger in vendor/open-telemetry/sdk/Logs/EventLoggerProvider.php
MeterProviderBuilder::build in vendor/open-telemetry/sdk/Metrics/MeterProviderBuilder.php
@psalm-suppress PossiblyInvalidArgument

File

vendor/open-telemetry/api/Common/Time/Clock.php, line 11

Class

Clock

Namespace

OpenTelemetry\API\Common\Time

Code

public static function getDefault() : ClockInterface {
    return self::$clock ??= new SystemClock();
}

API Navigation

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