Skip to content

LiteFX::Rendering::Backends::VulkanSwapChain::readTimingEvent

Reads the current time stamp value (in ticks) of a timing event.

Synopsis

Declared in <litefx/backends/vulkan.hpp>

[[dllimport, dllexport]] virtual UInt64 readTimingEvent(SharedPtr<TimingEvent const> timingEvent) const override;

Description

In order to convert the number of ticks to (milli-)seconds, this value needs to be divided by IGraphicsDevice::ticksPerMillisecond. To improve precision, calculate the difference between two time stamps in ticks first and only then convert them to seconds.

Return Value

The current time stamp value of the timing event in ticks.

Parameters

NameDescription
timingEventThe timing event to read the current value for.

See Also

TimingEvent::readTimestamp