function SystemClock::calculateReferenceTime
Calculates the reference time which is later used to calculate the current wall clock time in nanoseconds by adding the current uptime.
1 call to SystemClock::calculateReferenceTime()
- SystemClock::init in vendor/
open-telemetry/ api/ Common/ Time/ SystemClock.php
File
-
vendor/
open-telemetry/ api/ Common/ Time/ SystemClock.php, line 48
Class
- SystemClock
- @internal OpenTelemetry
Namespace
OpenTelemetry\API\Common\TimeCode
private static function calculateReferenceTime(float $wallClockMicroTime, int $upTime) : int {
return (int) ($wallClockMicroTime * ClockInterface::NANOS_PER_SECOND) - $upTime;
}