dev: Using new stopwatch, some cleanup. No functional change

This commit is contained in:
Kwoth
2024-06-25 07:09:16 +00:00
parent 237e66495b
commit 4366f908f3
6 changed files with 18 additions and 23 deletions

View File

@@ -229,10 +229,4 @@ public static class Extensions
public static IEnumerable<IRole> GetRoles(this IGuildUser user)
=> user.RoleIds.Select(r => user.Guild.GetRole(r)).Where(r => r is not null);
// todo remove
public static void Lap(this Stopwatch sw, string checkpoint)
{
Log.Information("Checkpoint {CheckPoint}: {Time}ms", checkpoint, sw.Elapsed.TotalMilliseconds);
sw.Restart();
}
}