Example #1
0
 public PhaseTime(int interval)
 {
     this.timer          = new Timer();
     this.timer.Interval = interval;
     this.timer.Tick    += new EventHandler(on_end);
     this.watch          = StopwatchSingleton.initialize();
 }
Example #2
0
 public static StopwatchSingleton initialize()
 {
     if (watch_entity == null)
     {
         watch_entity       = new StopwatchSingleton();
         watch_entity.watch = new Stopwatch();
     }
     return(watch_entity);
 }