示例#1
0
 /// <summary>
 /// 构造函数
 /// </summary>
 public StopWatcherAuto()
 {
     try
     {
         m_Sw = new StopWatcher();
         m_Sw.Start();
     }
     catch (Exception ex)
     {
         m_Logger.Fatal(string.Concat("实例化StopWatcherAuto出错:", ex.Message));
         m_Logger.Fatal(string.Concat("实例化StopWatcherAuto出错:", ex.StackTrace));
     }
 }
示例#2
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="name"></param>
 public StopWatcherAuto(string name)
 {
     try
     {
         m_Sw = new StopWatcher();
         m_Sw.Start();
         this.m_OperatorName = name;
     }
     catch (Exception ex)
     {
         m_Logger.Fatal(string.Concat("实例化StopWatcherAuto出错:", ex.Message));
         m_Logger.Fatal(string.Concat("实例化StopWatcherAuto出错:", ex.StackTrace));
     }
 }