Example #1
0
 public FwTimer()
 {
     // to be sure everything is initialized
     _running = false;
     _interval = DEFAULT_INTERVAL;
     _timer = new Timer {AutoReset = false};
     _timer.Elapsed += OnElapse;
     _status = TimerLogStatus.Disabled;
     _type = TimerType.Inverted;
     _startTime = DateTime.Now;
     _endTime = _startTime.AddSeconds(_interval);
 }
Example #2
0
 public FwTimer(float interval, TimerType type, TimerLogStatus status)
     : this(interval, type)
 {
     _status = status;
 }