Beispiel #1
0
 private static void timerQQ60_Elapsed(object sender, ElapsedEventArgs e)
 {
     try
     {
         lock (TimeData.obj_locQQ60)
         {
             DateTime now    = DateTime.Now;
             int      hour   = now.Hour;
             int      minute = now.Minute;
             int      second = now.Second;
             int      num    = minute % 2;
             if (second > 0 && second <= 15)
             {
                 QqSscData.QqSsc();
             }
         }
     }
     catch (Exception ex)
     {
         Console.WriteLine("SSC Exception:" + ex.Message);
     }
 }
Beispiel #2
0
        private static void timerQQ60_Elapsed(object sender, ElapsedEventArgs e)
        {
            try
            {
                lock (TimeData.obj_locQQ60)
                {
                    DateTime now    = DateTime.Now;
                    int      hour   = now.Hour;
                    int      minute = now.Minute;
                    int      second = now.Second;
                    int      num    = minute % 2;
                    //if (second > 0 && second <= 15)
                    //{

                    QqSscData.QqSsc();
                    //}
                }
            }
            catch (Exception ex)
            {
                Log.ErrorFormat("采集SSC异常 {0}", ex);
            }
        }