From c08fbe194a017a94d6215eb1d542439a5e22d46a Mon Sep 17 00:00:00 2001 From: JohnCorby Date: Wed, 29 Jan 2025 14:11:22 -0800 Subject: [PATCH] log --- NewHorizons/Patches/ProfilerPatch.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NewHorizons/Patches/ProfilerPatch.cs b/NewHorizons/Patches/ProfilerPatch.cs index e361368c..166e18ff 100644 --- a/NewHorizons/Patches/ProfilerPatch.cs +++ b/NewHorizons/Patches/ProfilerPatch.cs @@ -26,7 +26,7 @@ public static class ProfilerPatch if (!(method.Name.StartsWith("Make") || method.Name.StartsWith("Init"))) continue; if (method.IsGenericMethod) continue; - Main.Instance.ModHelper.Console.WriteLine($"[profiler] profiling method {method.DeclaringType.Name}.{method.Name}"); + Main.Instance.ModHelper.Console.WriteLine($"[profiler] profiling {method.DeclaringType.Name}.{method.Name}"); yield return method; } } @@ -47,6 +47,6 @@ public static class ProfilerPatch Profiler.EndSample(); __state.Stop(); - Main.Instance.ModHelper.Console.WriteLine($"[profiler] method {__originalMethod.DeclaringType.Name}.{__originalMethod.Name} took {__state.Elapsed.TotalMilliseconds} ms"); + Main.Instance.ModHelper.Console.WriteLine($"[profiler] {__originalMethod.DeclaringType.Name}.{__originalMethod.Name} took {__state.Elapsed.TotalMilliseconds:f1} ms"); } }