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); }
public FwTimer(float interval, TimerType type, TimerLogStatus status) : this(interval, type) { _status = status; }