Exemplo n.º 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);
        }
Exemplo n.º 2
0
 private int getNowTicks()
 {
     return(TimerSource.getTicks());
 }