ChatterBox.Client.Universal.Background.StatsManager.StartCallWatch C# (CSharp) Method

StartCallWatch() public method

public StartCallWatch ( ) : void
return void
        public void StartCallWatch()
        {
            _telemetry.Context.Operation.Name = "Call Duration tracking";

            _callWatch = Stopwatch.StartNew();

            AutoResetEvent autoEvent = new AutoResetEvent(false);
            Debug.Assert(_metricsCollector != null);
            TimerCallback tcb = _metricsCollector.CollectNewtorkMetrics;
            _networkTimer = new Timer(tcb, autoEvent, 0, 20000);

        }