make sure that __log is never empty so that .Last() can't throw
This commit is contained in:
parent
9e11086d49
commit
89207866f3
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue