This commit is contained in:
Kirill Polyakov
2020-09-02 16:44:52 +03:00
parent 14f6ccca71
commit a2cdc35a56
20 changed files with 782 additions and 594 deletions

View File

@ -12,6 +12,7 @@ int main(int argc, char *argv[])
std::wstring sOutputDirectory = NSFile::GetProcessDirectory() + L"/OutputFiles";
NSDirectory::CreateDirectory(sOutputDirectory);
clock_t tTime1 = clock();
//Русские символы в консоль не выводятся
for (std::wstring sFileName : arFiles)
{
@ -23,7 +24,7 @@ int main(int argc, char *argv[])
{
std::wstring sFile = sFileName.substr(0, sFileName.find_last_of(L'.'));
auto posLastSlash = sFile.find_last_of(L'/');
auto posLastSlash = sFile.find_last_of(L'\\');
if (posLastSlash != std::wstring::npos)
sFile = sFile.substr(posLastSlash + 1);
@ -41,5 +42,9 @@ int main(int argc, char *argv[])
std::wcout << (double)(tTimeEnd - tTimeBegin) / CLOCKS_PER_SEC << std::endl;
}
clock_t tTime2 = clock();
std::wcout << (double)(tTime2 - tTime1) / CLOCKS_PER_SEC << std::endl;
return 0;
}