예제 #1
0
        private static TimerObject createTimerEx(int interval, EventHandler evtHandler, int firstFire, int repeatCount, TimerEventArgs evtArgs)
        {
            TimerSource.checkSystemTimer();
            TimerParams param = new TimerParams {
                mEvtHandler  = evtHandler,
                mRepeatCount = repeatCount,
                mEventArgs   = evtArgs,
                mInterval    = interval,
                mFirstFire   = firstFire
            };
            TimerObject timerObject = new TimerObject();

            timerObject.init(param);
            addTimerEx(timerObject);
            return(timerObject);
        }
예제 #2
0
 private int getNowTicks()
 {
     return(TimerSource.getTicks());
 }