Beispiel #1
0
        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);
        }
Beispiel #2
0
        private void RankRatio()
        {
            var sw = new Stopwatch();
            sw.Start();
            Logger.Info("RankRatio启动");

            var service = new RatioRankingService();
            service.RankAllCategories();

            Logger.InfoFormat("RankRatio完成,用时{0}", sw.Elapsed);
        }