mirror of
https://github.com/rmcrackan/Libation.git
synced 2026-05-25 00:49:27 -04:00
make sure that __log is never empty so that .Last() can't throw
This commit is contained in:
@@ -9,7 +9,7 @@ namespace DtoImporterService
|
||||
public static class PerfLogger
|
||||
{
|
||||
private static Stopwatch sw = new Stopwatch();
|
||||
private static List<timeLogEntry> __log { get; } = new List<timeLogEntry>();
|
||||
private static List<timeLogEntry> __log { get; } = new List<timeLogEntry> { new("begin", 0, 0) };
|
||||
|
||||
public static void logTime(string s)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user