Add many more stopwatches

This commit is contained in:
Matt Nadareski
2021-02-02 14:09:49 -08:00
parent b93088c36e
commit c931c84838
10 changed files with 90 additions and 32 deletions

View File

@@ -54,6 +54,8 @@ namespace SabreTools.DatTools
// Ensure the output directory is set and created
outDir = outDir.Ensure(create: true);
InternalStopwatch watch = new InternalStopwatch($"Writing out internal dat to {outDir}");
// If the DAT has no output format, default to XML
if (datFile.Header.DatFormat == 0)
{
@@ -95,6 +97,10 @@ namespace SabreTools.DatTools
logger.Error(ex);
return false;
}
finally
{
watch.Stop();
}
return true;
}