Update ZCG new console output

This commit is contained in:
Jan
2021-03-01 14:12:36 +01:00
parent e33250a2de
commit 5290d3a768
3 changed files with 29 additions and 4 deletions

View File

@ -64,7 +64,10 @@ void HeaderFileReader::SetupPostProcessors()
bool HeaderFileReader::ReadHeaderFile(IDataRepository* repository)
{
std::cout << "Reading header file: " << m_filename << std::endl;
if (m_args->m_verbose)
{
std::cout << "Reading header file: " << m_filename << std::endl;
}
if (!OpenBaseStream())
return false;
@ -79,7 +82,11 @@ bool HeaderFileReader::ReadHeaderFile(IDataRepository* repository)
if (result)
result = parser->SaveToRepository(repository);
const auto end = std::chrono::steady_clock::now();
std::cout << "Processing header took " << std::chrono::duration_cast<std::chrono::milliseconds>(end - start).count() << "ms" << std::endl;
if(m_args->m_verbose)
{
std::cout << "Processing header took " << std::chrono::duration_cast<std::chrono::milliseconds>(end - start).count() << "ms" << std::endl;
}
if (!result)
return false;