LiteFX::Rendering::TimingEvent::readTimestamp¶
Reads the current timestamp (as a tick count) of the event.
Synopsis¶
Declared in <litefx/rendering_api.hpp>
[[dllimport, dllexport]] UInt64 readTimestamp() const;
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.
Exceptions¶
| Name | Thrown on |
|---|---|
RuntimeException | Thrown, if the parent device instance is already released. |
Return Value¶
The current time stamp of the event as a tick count.
See Also¶
ISwapChain::readTimingEvent