mirror of
https://github.com/microsoft/DirectXTex.git
synced 2025-07-14 14:10:13 +02:00
Code review feedback
This commit is contained in:
parent
80bac6c1c9
commit
52a02b5556
@ -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,13 +3593,12 @@ 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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user