make sure that __log is never empty so that .Last() can't throw
This commit is contained in:
parent
9e11086d49
commit
89207866f3
@ -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)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user