static void TestCreateEvent()
{
const int n = 1000000;
Stopwatch stopwatch = Stopwatch.StartNew();
int j = 0;
for (int i = 0; i < n; i++)
{
using ( new ManualResetEvent( false )){}
}
stopwatch.Stop();
WriteTime("Create Event", n, stopwatch.ElapsedTicks);
}