oa::ClockCalibration

One quasi-simultaneous host/device clock sample. maximumDeviationNanoseconds is the vulkan implementation's uncertainty bound for the pair, not an OA estimate. Consumers should recalibrate long-running traces periodically.

Public Methods

oa::F64 oa::ClockCalibration::hostNanosecondsForDeviceTimestamp(oa::U64 inDeviceTimestampTicks)

Public Data Members

deviceNanosecondsPerTickoa::F64field
deviceTimestampTicksoa::U64field
deviceTimestampValidBitsoa::U32field
hostClockDomainHostClockDomainfield
hostTimestampNanosecondsoa::U64field
maximumDeviationNanosecondsoa::U64field

Public Method Documentation

oa::F64 oa::ClockCalibration::hostNanosecondsForDeviceTimestamp( oa::U64 inDeviceTimestampTicks )
map a query-pool timestamp into the calibrated host clock. The signed modular delta handles vulkan timestamp wrap for queues exposing fewer than 64 valid bits. values farther than half a device-clock period from this sample are inherently ambiguous and require a newer calibration.

Parameters

inDeviceTimestampTicks
oa::U64

Returns

oa::F64

The declared return value.