BuildingCoder.JtTimer.IDisposable C# (CSharp) Méthode

IDisposable() private méthode

Automatic disposal when the the using statement block finishes: the timer is stopped and the time is registered.
private IDisposable ( ) : void
Résultat void
        void IDisposable.Dispose()
        {
            _timer.Stop();
              _duration = _timer.Elapsed.TotalSeconds;
              TimeRegistry.AddTime( _key, _duration );
        }