mirror of
https://github.com/microsoft/DirectXTex.git
synced 2026-02-12 15:46:14 +01:00
Code review feedback
This commit is contained in:
@@ -1853,17 +1853,11 @@ int __cdecl wmain(_In_ int argc, _In_z_count_(argc) wchar_t* argv[])
|
|||||||
mipLevels = 1;
|
mipLevels = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
LARGE_INTEGER qpcFreq;
|
LARGE_INTEGER qpcFreq = {};
|
||||||
if (!QueryPerformanceFrequency(&qpcFreq))
|
(void)QueryPerformanceFrequency(&qpcFreq);
|
||||||
{
|
|
||||||
qpcFreq.QuadPart = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
LARGE_INTEGER qpcStart;
|
LARGE_INTEGER qpcStart = {};
|
||||||
if (!QueryPerformanceCounter(&qpcStart))
|
(void)QueryPerformanceCounter(&qpcStart);
|
||||||
{
|
|
||||||
qpcStart.QuadPart = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Convert images
|
// Convert images
|
||||||
bool sizewarn = false;
|
bool sizewarn = false;
|
||||||
@@ -3599,12 +3593,11 @@ int __cdecl wmain(_In_ int argc, _In_z_count_(argc) wchar_t* argv[])
|
|||||||
|
|
||||||
if (dwOptions & (uint64_t(1) << OPT_TIMING))
|
if (dwOptions & (uint64_t(1) << OPT_TIMING))
|
||||||
{
|
{
|
||||||
LARGE_INTEGER qpcEnd;
|
LARGE_INTEGER qpcEnd = {};
|
||||||
if (QueryPerformanceCounter(&qpcEnd))
|
(void)QueryPerformanceCounter(&qpcEnd);
|
||||||
{
|
|
||||||
LONGLONG delta = qpcEnd.QuadPart - qpcStart.QuadPart;
|
LONGLONG delta = qpcEnd.QuadPart - qpcStart.QuadPart;
|
||||||
wprintf(L"\n Processing time: %f seconds\n", double(delta) / double(qpcFreq.QuadPart));
|
wprintf(L"\n Processing time: %f seconds\n", double(delta) / double(qpcFreq.QuadPart));
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return retVal;
|
return retVal;
|
||||||
|
|||||||
Reference in New Issue
Block a user