Example #1
0
        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
        }