42 D3D11_QUERY_DESC desc;
43 desc.Query = D3D11_QUERY_TIMESTAMP_DISJOINT;
51 desc.Query = D3D11_QUERY_TIMESTAMP;
57 LogError(
"Failed to create start time query.");
66 LogError(
"Failed to create final time query.");
80 double numer =
static_cast<double>(
GetTicks());
81 double denom =
static_cast<double>(
mTimeStamp.Frequency);
97 return static_cast<int64_t
>(seconds*
mFrequency);
ULONG FinalRelease(T *&object)
#define LogError(message)
ULONG SafeRelease(T *&object)
#define CHECK_HR_RETURN_VOID(msg)
#define D3D11_QUERY_MISC_NONE