示例#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();
        }
示例#2
0
 public static LowResolutionStopwatch StartNew()
 {
     LowResolutionStopwatch sw = new LowResolutionStopwatch();
       sw.Start();
       return sw;
 }