Add total timing

This commit is contained in:
Jarrod Doyle 2025-02-23 10:12:41 +00:00
parent 00537fa3ca
commit dacc9ea5e1
Signed by: Jayrude
GPG Key ID: 38B57B16E7C0ADF7
1 changed files with 6 additions and 5 deletions

View File

@ -49,11 +49,12 @@ public class LightCommand
public void Run()
{
Timing.Reset();
var lightMapper = new LightMapper(InstallPath, CampaignName, MissionName);
lightMapper.Light(FastPvs);
lightMapper.Save(OutputName);
Timing.TimeStage("Total", () =>
{
var lightMapper = new LightMapper(InstallPath, CampaignName, MissionName);
lightMapper.Light(FastPvs);
lightMapper.Save(OutputName);
});
Timing.LogAll();
}
}