Add ability to time simplifyTemplates. (#1640)

This commit is contained in:
IOBYTE 2019-02-01 12:17:18 -05:00 committed by Daniel Marjamäki
parent 681cb7dd90
commit 5c0ec782f1
1 changed files with 6 additions and 1 deletions

View File

@ -3872,7 +3872,12 @@ bool Tokenizer::simplifyTokenList1(const char FileName[])
if (!isC()) { if (!isC()) {
// Handle templates.. // Handle templates..
if (mTimerResults) {
Timer t("Tokenizer::tokenize::simplifyTemplates", mSettings->showtime, mTimerResults);
simplifyTemplates(); simplifyTemplates();
} else {
simplifyTemplates();
}
// The simplifyTemplates have inner loops // The simplifyTemplates have inner loops
if (mSettings->terminated()) if (mSettings->terminated())