From dacc9ea5e19f3002982d0b48dc58e01a74311438 Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Sun, 23 Feb 2025 10:12:41 +0000 Subject: [PATCH] Add total timing --- KeepersCompound.Lightmapper/Program.cs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/KeepersCompound.Lightmapper/Program.cs b/KeepersCompound.Lightmapper/Program.cs index 9d2d931..31ddf91 100644 --- a/KeepersCompound.Lightmapper/Program.cs +++ b/KeepersCompound.Lightmapper/Program.cs @@ -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(); } } \ No newline at end of file