public IntervalTimer(float interval, bool shouldInvokeOnStart = false, ITimeGetter timeGetter = null) { _interval = interval; _stopWatch = new StopWatch(timeGetter); IsRunning = false; _shouldInvokeOnStart = shouldInvokeOnStart; }
public ChartController(ITimerAccess timerAccess, ITimeBuilder timeBuilder, ITimeGetter timeGetter, IRequestReader requestReader, ITimerCalculator timerCalculator) { _timerAccess = timerAccess; _timeBuilder = timeBuilder; _timeGetter = timeGetter; _requestReader = requestReader; _timerCalculator = timerCalculator; _timeZoneInfo = _timeBuilder.GetTimeZoneInfo(_requestReader.Read(TypeScript.HttpHeaders.Request.CurrentTimeZone)); }
public StopWatch(ITimeGetter timeGetter = null) { IsRunning = false; _timeGetter = timeGetter ?? DefaultTimeGetter.Instance; }
public PausableStopWatch(ITimeGetter timeGetter) { _runWatch = new StopWatch(timeGetter); _pauseWatch = new StopWatch(timeGetter); }
public TimeBuilder(ITimeGetter timeGetter) { _timeGetter = timeGetter; }
public ExpirationTimer(float time, ITimeGetter timeGetter = null) { _intervalTimer = new IntervalTimer(time, false, timeGetter); _intervalTimer.OnTickTimer += TimerTick; }
public void Setup() { _timeGetter = Substitute.For <ITimeGetter>(); _sut = new TimeBuilder(_timeGetter); }