public static async Task <TimeSpan> UpdateHeroes() { DateTime start = DateTime.Now; JToken[] heroes = await LoadCardJson(heroAPI, "heroes"); HeroCard[] heroList = new HeroCard[heroes.Length]; for (int i = 0; i < heroes.Length; i++) { heroList[i] = new HeroCard(heroes[i]); } heroList.Sort(); HeroCard.List = heroList; DateTime end = DateTime.Now; TimeSpan time = end - start; Client.DebugLogger.LogMessage(LogLevel.Debug, "APIManager", $"Hero list updated in {time}.", DateTime.Now); return(time); }