Ejemplo n.º 1
0
        /// <summary>
        /// Construct a TimedStream
        /// </summary>
        /// <param name="baseStream"> Undelying stream</param>
        public TimedStream(Stream baseStream)
        {
            this.baseStream = baseStream;

            timeout = System.Threading.Timeout.Infinite;
            isClosed = false;
            stopwatch = new LowResolutionStopwatch();
        }
Ejemplo n.º 2
0
 public static LowResolutionStopwatch StartNew()
 {
     LowResolutionStopwatch sw = new LowResolutionStopwatch();
       sw.Start();
       return sw;
 }