public void Execute(IJobExecutionContext context) { var sw = new Stopwatch(); sw.Start(); Logger.Info("RatioRankingJob启动"); var service = new RatioRankingService(); service.RankAllCategories(); Logger.InfoFormat("RatioRankingJob完成,用时{0}", sw.Elapsed); }
private void RankRatio() { var sw = new Stopwatch(); sw.Start(); Logger.Info("RankRatio启动"); var service = new RatioRankingService(); service.RankAllCategories(); Logger.InfoFormat("RankRatio完成,用时{0}", sw.Elapsed); }