LiteFX::Rendering::ISwapChain::readTimingEvent¶
Reads the current time stamp value (in ticks) of a timing event.
Synopsis¶
Declared in <litefx/rendering_api.hpp>
[[dllimport, dllexport]] virtual UInt64 readTimingEvent(SharedPtr<TimingEvent const> timingEvent) const = 0;
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¶
| Name | Description |
|---|---|
| timingEvent | The timing event to read the current value for. |
See Also¶
TimingEvent::readTimestamp