Diligent Engine
 
Loading...
Searching...
No Matches
Diligent::QueryDataDuration Struct Reference

Duration query data. More...

#include <Query.h>

Public Attributes

enum QUERY_TYPE Type = QUERY_TYPE_DURATION
 Query type - must be Diligent::QUERY_TYPE_DURATION.
 
Uint64 Duration = 0
 
Uint64 Frequency = 0
 

Detailed Description

Duration query data.

This structure is filled by IQuery::GetData() for Diligent::QUERY_TYPE_DURATION query type.

Member Data Documentation

◆ Duration

Uint64 Diligent::QueryDataDuration::Duration = 0

The number of high-frequency counter ticks between BeginQuery and EndQuery calls.

◆ Frequency

Uint64 Diligent::QueryDataDuration::Frequency = 0

The counter frequency, in Hz (ticks/second). If there was an error while getting the timestamp, this value will be 0.