|The source for this sample can be found in the Khronos Vulkan samples github repository.
This sample demonstrates the extension
The calibrated timestamps profiles any given portion of code, unlike timestamp queries, which only profiles an entire graphic queue.
To enable the
VK_KHR_get_physical_device_properties2 must be enabled.
This sample is built upon the framework of the Vulkan Sample
We demonstrate using calibrated timestamps over the build_command_buffers function.
A timestamp is being sampled via the calibrated timestamp extension. In general, one must take two timestamps in order to measure the time elapsed within a block of code.
Each time domain is different, and the measurement of their associated timestamp periods may vary. The precision of timestamps is calibrated by max deviations.