ClockFactory.php
Namespace
OpenTelemetry\SDK\Common\TimeFile
-
vendor/
open-telemetry/ sdk/ Common/ Time/ ClockFactory.php
View source
<?php
declare (strict_types=1);
namespace OpenTelemetry\SDK\Common\Time;
use OpenTelemetry\API\Common\Time\Clock;
use OpenTelemetry\API\Common\Time\ClockInterface;
/**
* @deprecated Use OpenTelemetry\API\Common\Time\Clock
* @codeCoverageIgnore
*/
class ClockFactory {
public static function getDefault() : ClockInterface {
return Clock::getDefault();
}
public static function setDefault(?ClockInterface $clock) : void {
if ($clock !== null) {
Clock::setDefault($clock);
}
else {
Clock::reset();
}
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
ClockFactory | Use OpenTelemetry\API\Common\Time\Clock |
@codeCoverageIgnore |