Removed debug benchmark from FixConsecutiveSceneFrames

This commit is contained in:
N00MKRAD
2020-12-23 00:15:36 +01:00
parent 9b20e74a5d
commit b323146fdc
2 changed files with 1 additions and 5 deletions

View File

@@ -319,8 +319,6 @@ namespace Flowframes.Main
public static void FixConsecutiveSceneFrames (string sceneFramesPath, string sourceFramesPath)
{
Stopwatch sw = new Stopwatch();
List<string> sceneFrames = IOUtils.GetFilesSorted(sceneFramesPath).Select(x => Path.GetFileNameWithoutExtension(x)).ToList();
List<string> sourceFrames = IOUtils.GetFilesSorted(sourceFramesPath).Select(x => Path.GetFileNameWithoutExtension(x)).ToList();
List<string> sceneFramesToDelete = new List<string>();
@@ -339,8 +337,6 @@ namespace Flowframes.Main
foreach (string frame in sceneFramesToDelete)
IOUtils.TryDeleteIfExists(Path.Combine(sceneFramesPath, frame + ".png"));
Logger.Log("Ran FixConsecutiveSceneFrames in " + FormatUtils.Time(sw.Elapsed));
}
}
}

View File

@@ -45,7 +45,7 @@ namespace Flowframes.UI
if (span.TotalSeconds >= 1f || !allowMs)
return span.ToString(@"ss") + "s";
return span.ToString(@"fff") + "ms";
return span.ToString(@"fff").TrimStart('0').PadLeft(1, '0') + "ms";
}
public static string TimeSw(Stopwatch sw)