예제 #1
0
파일: TimedStream.cs 프로젝트: BjkGkh/R106
        /// <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;
 }