comparison MonoPlay/Program.cs @ 124:a336cb13c6a9 v2

major update, added Drain mathod to AsyncQueue class
author cin
date Thu, 15 Jan 2015 02:43:14 +0300
parents 0c8685c8b56b
children f803565868a4
comparison
equal deleted inserted replaced
123:f4d6ea6969cc 124:a336cb13c6a9
49 res2 += temp; 49 res2 += temp;
50 } 50 }
51 Console.WriteLine("done reader #2: {0} ms", Environment.TickCount - t1); 51 Console.WriteLine("done reader #2: {0} ms", Environment.TickCount - t1);
52 } 52 }
53 ) 53 )
54 .Combine() 54 .Bundle()
55 .Join(); 55 .Join();
56 56
57 Console.WriteLine("done: {0} ms, summ#1: {1}, summ#2: {2}, total: {3}, count: {4}", Environment.TickCount - t1, res1, res2, res1 + res2, count*2); 57 Console.WriteLine("done: {0} ms, summ#1: {1}, summ#2: {2}, total: {3}, count: {4}", Environment.TickCount - t1, res1, res2, res1 + res2, count*2);
58 58
59 var t2 = Environment.TickCount; 59 var t2 = Environment.TickCount;
105 i++; 105 i++;
106 } 106 }
107 107
108 } 108 }
109 ) 109 )
110 .Combine() 110 .Bundle()
111 .Join(); 111 .Join();
112 112
113 113
114 114
115 t2 = Environment.TickCount; 115 t2 = Environment.TickCount;