コード例 #1
0
ファイル: Commands.cs プロジェクト: Doppelkeks/uGameFramework
        protected void CreateGlobalTimerCommandHandler(CreateGlobalTimerCommand cmd)
        {
#if PERFORMANCE_TEST
            var ptest = Service.Performance.PerformanceTest.Get();
            ptest.Start("CreateGlobalTimerCommand");
#endif

            cmd.result = _service.CreateGlobalTimer(cmd.interval, cmd.callback, cmd.repeatTimes, cmd.info);
#if PERFORMANCE_TEST
            // now stop the watches
            ptest.Stop("CreateGlobalTimerCommand");
#endif
        }