class ClockFactory
@codeCoverageIgnore
Hierarchy
- class \OpenTelemetry\SDK\Common\Time\ClockFactory
Expanded class hierarchy of ClockFactory
Deprecated
File
-
vendor/
open-telemetry/ sdk/ Common/ Time/ ClockFactory.php, line 14
Namespace
OpenTelemetry\SDK\Common\TimeView source
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();
}
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
ClockFactory::getDefault | public static | function | |
ClockFactory::setDefault | public static | function |