public StopwatchListener(IStopwatchWriter writer)
 {
     _queue  = new ConcurrentQueue <Stopwatch>();
     _writer = writer;
     Stopwatch.OnStopwatchCompleted += Stopwatch_OnStopwatchCompleted;
     _worker = new Thread(new ThreadStart(QueueMonitor));
     _worker.Start();
 }
 public StopwatchListener(IStopwatchWriter writer)
 {
     _queue = new ConcurrentQueue<Stopwatch>();
     _writer = writer;
     Stopwatch.OnStopwatchCompleted += Stopwatch_OnStopwatchCompleted;
     _worker = new Thread(new ThreadStart(QueueMonitor));
     _worker.Start();
 }