示例#1
0
文件: Time.cs 项目: jiowchern/Regulus
 public Time()
 {
     _TimingTimer = new Timer(
         new TimeSpan(0, 1, 0),
         current =>
         {
             if(_Time != null)
             {
                 _Request.Reset();
                 _Time.GetTick().OnValue += _Timing;
             }
         });
 }
示例#2
0
 public IndependentTimer(System.TimeSpan interval, Action<long> time_up)
 {
     _Timer = new Timer(interval, time_up);
     _Time = new Time();
 }